2011-02-13 42 views
0

我正在嘗試重定向Zeus服務器上的整個站點。我只設法成功重定向主頁。其他頁面將出現「找不到頁面」。這裏是我使用的代碼:用Zeus重定向整個站點

match URL into $ with ^\/$ 
if matched 
set OUT:Location = http://www.mentalhealthreform.ie/ 
set OUT:Content-Type = text/html 
set RESPONSE = 301 
set BODY = Moved 
goto END 
endif 

任何幫助將不勝感激!

回答

0

,你可能會想嘗試:

RULE_0_START: 
match IN:Host into $ with currentsite\.co\.uk$ 
if matched then 
match URL into $ with ^/(.*)$ 
    set OUT:Location = http://www.newsite.com/$1 
    set OUT:Content-Type = text/html 
    set RESPONSE = 301 
    set BODY = Moved 
goto END 
endif 
RULE_0_END: 

這應該與當前網站上的頁面請求,並追加新的。我們的服務器現在在Apache上,但我確實記得與Zeus做事的困難。