1
好的,也许我是转储,但我简单的重写.htacces规则不起作用。我只想在我的网站上,例如www.mysite.com/something.html将重写规则更改为www.mysite.com/something。我yust想从文件中删除something.html .html和获取内容简单重写规则
现在我有这个在我的.htacces文件,但不工作:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+)$ $1.html [L,QSA]
AddType application/x-httpd-php5 .htm .html
谢谢,它的作品像魅力:-D – 2014-12-11 07:58:28
不客气,很高兴它解决了。 – anubhava 2014-12-11 08:06:31