0
I want to make my Urls more friendly and am using the .htaccess
for that reason.
The problem is that it is returning me an Internal Server Error, and I could not identify where my Rule error is.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) $1.php [L]
RewriteRule ^autenticar/([a-zA-Z0-9]+)/?& index?authUser=$1
I get ISE when accessing the url: http://localhost/autenticar/teste/
,
but I can access http://localhost/index
no problem at all.
What am I doing wrong?
If I remove the line that adds . php at the end of the files, I get "object not found".
If I add [NC, L]
, I receive another ISE, with this message:
"The server encountered an internal error and could not complete its request. The server is overloaded or there is an error in a cgi script."
I’m using the Xampp.