2
如何從example.com/word.html或word-abc.html重定向301或ABC-word.html或URL包含「字」到example.com如何將301從example.com/word.html或word-abc.html或abc-word.html重定向到example.com
現在我只是做手工用這個簡單的代碼:
Redirect 301 /word.html example.com
Redirect 301 /word-abc.html example.com
Redirect 301 /abc-word.html example.com
我想這樣做,它會自動從URL重定向包含「字「to example.com
謝謝。
嗨@anubhava感謝您的代碼。它真的工作。 嗯..它可能如果我想通過隨機大寫重定向? 例如:Word-aBc-woRd-ABC.html to example.com? –
嗯,這是奇怪的要求。這是否意味着只有在URI中有大小寫混合的情況下才會重定向? – anubhava
是的。我的意思是.. :) –