0
如何將www.domain.com轉換爲默認的domain.com/index.html。htaccess - 首次將index.html作爲模糊頁面
例如,如果有人輸入www.domain.com會重定向到www.domain.com/index.html
感謝
如何將www.domain.com轉換爲默認的domain.com/index.html。htaccess - 首次將index.html作爲模糊頁面
例如,如果有人輸入www.domain.com會重定向到www.domain.com/index.html
感謝
像這樣的事情?
RewriteEngine On
RewriteRule ^$ /index.html [R,L]
謝謝,它工作完美。 –
另一個問題:將訪問者重定向到domain.con/index.html domain.com的instate對SEO有好處或不好。 –
我對細節知之甚少,但我想它是中性的,因爲URI中沒有任何內容或關鍵字。 –