0
我已經在我的網站改變了我的子文件夾的名稱和需要知道的代碼爲rewrite.script301重定向子目錄宙斯
例如:
我怎麼會直接http://www.mydomain/stackoverflow/index
到
http://www.mydomain/stackoverflow2/index
我想避免單獨寫每個URL路徑的網站很大。請幫助我在ZEUS服務器ARGH!
我已經在我的網站改變了我的子文件夾的名稱和需要知道的代碼爲rewrite.script301重定向子目錄宙斯
例如:
我怎麼會直接http://www.mydomain/stackoverflow/index
到
http://www.mydomain/stackoverflow2/index
我想避免單獨寫每個URL路徑的網站很大。請幫助我在ZEUS服務器ARGH!
match URL into $ with ^/stackoverflow/(.*)
if matched then
set OUT:Location = /stackoverflow2/$1
set RESPONSE=301
set BODY=Page moved
goto END
endif