Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.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
.htaccess 将特定域的所有子目录重定向到同一域的索引_.htaccess_Redirect - Fatal编程技术网

.htaccess 将特定域的所有子目录重定向到同一域的索引

.htaccess 将特定域的所有子目录重定向到同一域的索引,.htaccess,redirect,.htaccess,Redirect,我正在尝试将一个特定域的所有子目录“domain.net/subdir/”重定向到“domain.net/index.html”。我希望它适用于这个特定域,因为我正在处理多个域,我不希望它重定向其他域 我该怎么做?谢谢 是否要重定向该特定域的一个子目录或所有子目录或所有子目录?是否要重定向该特定域的一个子目录或所有子目录或所有子目录

我正在尝试将一个特定域的所有子目录“domain.net/subdir/”重定向到“domain.net/index.html”。我希望它适用于这个特定域,因为我正在处理多个域,我不希望它重定向其他域


我该怎么做?谢谢

是否要重定向该特定域的一个子目录或所有子目录或所有子目录?是否要重定向该特定域的一个子目录或所有子目录或所有子目录