I want to make my URLs friendlier and I'm using .htaccess
for this.
The problem is that I am returning 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 upon accessing url: http://localhost/autenticar/teste/
,
but I can access http://localhost/index
with 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 get 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 Xampp.