【发布时间】:2013-01-24 16:27:31
【问题描述】:
1) 我的 wp-content 使用包含以下代码的 .htaccess 文件进行了强化:
<Files *.php>
deny from all
</Files>
2) 我想(需要)授权xml-sitemap-xsl.php 否则我的错误日志中会出现此错误:client denied by server configuration: /home/user/mysite.net/wp-content/plugins/wordpress-seo/css/xml-sitemap-xsl.php, referer: http://mysite.net/sitemap_index.xml
3) 我想我应该添加以下代码,但我不确定它是否正确,也不知道该放在哪里:
<Files "xml-sitemap-xsl.php">
Allow from all
</Files>
我要避免的是拒绝和允许命令之间的冲突。
谢谢,
P.
【问题讨论】: