重定向页面的.html到的index.php如果你看看我怎样才能让我的网站采用了先进的mod_rewriting
http://ecocool.zadesigns.com
点击help
链接,并将其转移到
http://ecocool.zadesigns.com/help
这个作品,但如果您物理键入“http://ecocool.zadesigns.com/help.html”
它不起作用。
我怎么能修改htaccess,因此,如果我键入
http://ecocool.zadesigns.com/help.html
在地址栏中它会从URL中.html
,加载index.php文件,然后向我发送到正确的页面。
这里是htaccess文件。
<ifModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteRule ^(.*)$ index.php?q=$1 [NC,L,QSA]
</ifModule>
该网页,这是最好的答案,多谢你既帮助。甚至认为你的答案是正确的我实际上有其他问题与冲突的系统都争取控制index.php和路由。生病必须问另一个关于那个问题 – Zuriel
@ ZurielAndrusyshyn当然,当你这样做的时候给我留下评论链接,我会看看。 – Prix