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中的WordPress部分会终止FrontPage权限_Wordpress_.htaccess_Frontpage - Fatal编程技术网

htaccess中的WordPress部分会终止FrontPage权限

htaccess中的WordPress部分会终止FrontPage权限,wordpress,.htaccess,frontpage,Wordpress,.htaccess,Frontpage,我让WordPress在我的web服务器的public_html目录中运行,即我帐户上的主域指向此目录。此文件夹下有其他网站的子目录,例如“subdomain.com”网站的/subdomain。子目录中的一些网站是使用FrontPage编辑的 我发现根目录中的.htaccess文件在配置为WP时会弄乱FrontPage权限,使其无法使用FrontPage FrontPage从不提示进行身份验证,并抛出404错误。从网络搜索中,我发现其他人也遇到了这个问题,例如,但我没有成功实施其他人提出的修复

我让WordPress在我的web服务器的public_html目录中运行,即我帐户上的主域指向此目录。此文件夹下有其他网站的子目录,例如“subdomain.com”网站的/subdomain。子目录中的一些网站是使用FrontPage编辑的

我发现根目录中的.htaccess文件在配置为WP时会弄乱FrontPage权限,使其无法使用FrontPage FrontPage从不提示进行身份验证,并抛出404错误。从网络搜索中,我发现其他人也遇到了这个问题,例如,但我没有成功实施其他人提出的修复方案

详情如下:

当此.htaccess文件位于根目录下时,FrontPage工作正常: 我希望在此root.htaccess文件中包含WP部分,并尝试将以下.htaccess文件放在顶级public_html目录中: 但是,当安装上述带有WP组件的.htaccess文件时,它会中断FrontPage身份验证

“subdomainN”的my_vti_bin文件中的.htaccess文件是由FrontPage编辑的域,该文件如下所示:

# -FrontPage-

Options +FollowSymlinks

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mydomain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
# -FrontPage-

Options +FollowSymlinks

<Limit GET POST>
order deny,allow
deny from all
allow from all
require group authors administrators
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthType Passthrough
AuthName myrootdomain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
…子域N的my_vti_aut和_vti_adm子目录中的.htaccess文件如下所示:

# -FrontPage-

Options +FollowSymlinks

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mydomain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
# -FrontPage-

Options +FollowSymlinks

<Limit GET POST>
order deny,allow
deny from all
allow from all
require group authors administrators
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthType Passthrough
AuthName myrootdomain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp

关于如何调整FrontPage身份验证以使其工作以及.htaccess文件中的WP组件的任何建议?

在子目录中的所有htaccess文件中,添加:

RewriteEngine On
因此,不会应用来自文档根目录的重写规则