0
我有一个问题。我想通过301重定向到htaccess将我的网站地址从www.lapnet.net.pl重定向到lapnet.net.pl。总是当我尝试使用此代码:301重定向,冗余index.php
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.lapnet.net.pl
RewriteRule ^(.*)$ http://lapnet.net.pl$1 [R=permanent,L]
浏览器重定向我http://lapnet.net.pl/index.php?view= (视图可变负责加载内容)。我怎样才能避免这个“index.php?view =”? 感谢您的帮助
可能你已经重写了上层文件夹中的'.htaccess'文件 – 2013-03-07 16:30:07
我认为你要求重写规则做这样的事情:'http://site.com/index.php?view=1 => http: // site.com /视图/ 1'。如果是这样,请重新填写你的问题。 – JRomero 2013-03-07 16:31:15
这条规则中没有任何东西会添加*'/index.php?view=',所以要么有另一个重写规则生效,要么代码中有一些东西在做另一个重定向。 – Sammitch 2013-03-07 16:36:53