0

I want to remove .php extension from the URL so that URL like http://mysite.com/abc.php will redirect to http://mysite.com/abc How can I do this using .htaccess in apache

4

1 に答える 1

1
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME}\.php -f 
RewriteRule ^(.*)$ $1.php

あなたは簡単にそれをグーグルすることができます.....

于 2012-09-02T10:27:22.560 に答える