Forum Moderators: phranque
I'm using an .htaccess to remove the .php extension via the following:
RewriteEngine On
RewriteBase /
# Externally redirect direct client requests for .php files to non-.php URLs
RewriteCond %{THE_REQUEST} ^GET\ /([^/]+/)*[^.]+\.php(\?[^\ ]*)?\ HTTP/
RewriteRule ^(([^/]+/)*[^.]+)\.php$ [abc.localhost...] [R=301,L]
# Internally rewrite extensionless page URLs to php files if no extension or trailing slash on requested URL
RewriteCond %{REQUEST_URI} !(\.¦/$)
# and if filename exists when .php is appended
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule (.+) /$1.php [L]
Anyway is there a way I can rewrite this url:
[abc.localhost...]
to
[abc.localhost...]
Thanks
[edited by: hOtTiGeR123 at 5:06 pm (utc) on June 15, 2008]
but I would like it to be just [abc.localhost...]
Thanks,
Jim