Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache htaccess-首次将index.html作为默认页面_Apache_.htaccess_Mod Rewrite - Fatal编程技术网

Apache htaccess-首次将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中都没有

如何将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中都没有任何内容或关键字。它会平衡自身,使它本质上是中性的——公开技术(
.html
)将是一个负号,但是
/
/index.html
将是指向相同内容的两个链接,因此有一个明确的重定向将是一个奖励。还要确保将
www.domain.com
domain.com
作为可能不同的URL进行说明。