我当前的 .htaccess 允许我按如下方式查看页面:
http://www.test.com/test.php as http://www.test.com/test
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
如何在文件名之前添加任何文本,这些文本将被忽略,例如:
http://www.test.com/test34566/test or http://www.test.com/anything/test