Apache htaccess-首次将index.html作为默认页面
如何将www.domain.com转换为默认的domain.com/index.html 例如,如果有人键入www.domain.com,它将重定向到www.domain.com/index.html类似的内容Apache htaccess-首次将index.html作为默认页面,apache,.htaccess,mod-rewrite,Apache,.htaccess,Mod Rewrite,如何将www.domain.com转换为默认的domain.com/index.html 例如,如果有人键入www.domain.com,它将重定向到www.domain.com/index.html类似的内容 RewriteEngine On RewriteRule ^$ /index.html [R,L] 另一个问题:将访问者重定向到domain.com的domain.con/index.html instate对搜索引擎优化是好是坏。我不太了解细节,但我认为它是中性的,因为URI中都没有
RewriteEngine On
RewriteRule ^$ /index.html [R,L]
另一个问题:将访问者重定向到domain.com的domain.con/index.html instate对搜索引擎优化是好是坏。我不太了解细节,但我认为它是中性的,因为URI中都没有任何内容或关键字。它会平衡自身,使它本质上是中性的——公开技术(
.html
)将是一个负号,但是/
和/index.html
将是指向相同内容的两个链接,因此有一个明确的重定向将是一个奖励。还要确保将www.domain.com
和domain.com
作为可能不同的URL进行说明。