我有一个问题
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
我的想法:
http://redir.com/? to execute redir.php
http://redir.com or http://redir.com/ to execute index.php
如何制作htaccess?
tnx