我想刪除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 –