2013-11-04 37 views
0

試圖把現有的URL追加到URL字符串的beggining說:domain.com/qe/info/happy/ 並在前面加上以下內容:/ QE快樂/使用ISAPI 3

之前: domain.com/qe/info/happy/ 後:我使用ASAPI 3

new.com/info/qe-happy/

讓我知道,如果任何人有一個解決方案。

感謝 史蒂夫

回答

0

嘗試使用:

RewriteEngine on 
RewriteBase/

RewriteCond %{HTTP:Host} ^domain\.com$ [NC] 
RewriteCond %{REQUEST_URI} ^/qe/info/(.*)$ 
RewriteRule ^(.+)$ http://new.com/info/qe-%1 [NC,R=301,L]