Getting error with this code
when i am putting this code into .htaccess file for hide the .php
extension am getting some error like Server error!
The server encountered an internal error and was unable to complete your
request. Either the server is overloaded or there was an error in a CGI
script.
#Remove PHP extension from links
RewriteEngine On
RewriteCond %{REQUEST_URI}!(\.[^./]+)$
RewriteCond %{REQUEST_FILENAME}!-d
RewriteCond %{REQUEST_FILENAME}!-f
RewriteRule (.*)/$1.php[L]
RewriteCond %{THE_REQUEST}^[A-Z]{3,9}\/([^.]+\.)+php\HTTP
RewriteRule ^(.+)\.php$/$1[R=301,L]
Please Help me. Thank You
No comments:
Post a Comment