我想删除single.php?我会如何去呢?,我已经尝试了以下内容:Htaccess从url中删除文件名
so EG。 www.mysite.com/single.php/contact/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^\.]+)$ $1.php [QSA,NC,L]
</IfModule>
需要它只是'single.php'? – anubhava
是:)想要替换single.php文件,以便新的URL读取www.sitename.com/page1而不是www.sitename.com/single.php/page1 –