我改变了我的网站&的url结构。 现在我想重定向我的旧页面(目前是404错误页面)到我的主页。htaccess重定向404页面到index.php
网址:
http://www.example.com/abc-def-ghi-sp(m).html
到
http://www.example.com
我在htaccess的
RewriteEngine On
RewriteRule ^(.*)\.html$/[L,R=301]
以上规则工作正常使用下面的规则。 而且我还需要另一个redirection.But它不工作
http://www.example.com/page.php?name=amca&PID=143&PageID=abc
到
http://www.example.com
我已经使用htaccess的
RewriteRule ^page\.php/[L,R=301]
以下规则但结果
它显示了主页。
但在浏览器的URL是
http://www.example.com/?name=amca&PID=143&PageID=abc
我已经尝试了不同的rule.But不工作
谢谢。它的工作正常。 – user2214646