2014-02-28 233 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

相關問題