2014-02-28 232 views

回答

0

您可以使用:

RewriteEngine On 

RewriteCond %{THE_REQUEST} \s/+it2[/?] [NC] 
RewriteRule ^it2(/.*)?$ /it$1 [R=301,L,NE] 

RewriteRule ^it(/.*)?$ /it2$1 [L,NC] 
+0

tnx来做到这一点,但没有发生任何事情...我在本地主机...但我确信mode_rewrite是启用...我已经重定向了这样的代码:** RewriteRule ^(archives \ .html)/([0-9 - ] +)/?$/$ 1 /?option = com_bahaedini&date = $ 2 [L,NC,QSA,R] ** – user3307827

+0

这是Joomla CMS吗? – anubhava

+0

是和目的地的主要网址是:option = com_k2&view = itemlist&layout = category&Itemid = 1137 – user3307827

0

更新您的index.htm在/它

<meta http-equiv="refresh" content="0;url=http://www.example.com/it2"> 
+0

谢谢,但我想用.htaccess – user3307827

相关问题