我有這個地址http://www.example.com並擁有此頁http://www.example.com/world。 我可以用mod_rewrite做到這一點,我的頁面變成http://world.example.com? 任何鏈接,教程,...,會很好,如果我可以做到這一點? ,並將與這些鏈接,例如什麼:Apache mod_rewrite域到子域?
http://www.example.com/world/some-other-page
http://www.example.com/world/and-second-apge
將這些鏈接也被改寫爲:
http://world.example.com/some-other-page
http://world.example.com/and-second-apge
另一個問題,這是很好的搜索引擎優化?
對不起我的英文不好。
任何幫助? – user147 2010-10-10 18:45:58
嘗試將以下內容添加到感興趣的目錄上的父目錄中的'.htaccess':'RedirectMatch ^/foo/$/foo/bar /'或'RedirectMatch ^/foo/$/bar/baz /'。另請參閱[如何讓apache2重定向到子目錄](http://serverfault.com/q/9992/145545)。 – jww 2016-11-06 08:26:52