2014-03-25 104 views
0

我真的很困惑,現在,我已經通過的index.php的.htaccess刪除,但無法刪除域=從URL,我已經嘗試了一些例子:如何刪除域=從URL

Options +FollowSymLinks -MultiViews 
# Turn mod_rewrite on 
RewriteEngine On 
RewriteBase/
RewriteRule ^(.*)/?domain/?$ /$1/ [L,R=301] 
RewriteRule ^domain/(.*)$ /$1 [L,R=301] 

更多的人,幫助我

回答

1

在目標URI的末尾添加?脫光查詢字符串:

Options +FollowSymLinks -MultiViews 
# Turn mod_rewrite on 
RewriteEngine On 
RewriteBase/
RewriteRule ^(.*)/?domain/?$ /$1/? [L,R=301] 
RewriteRule ^domain/(.*)$ /$1? [L,R=301]