我有一个WordPress实例在我的域的根上运行。
一个WordPress页面位于www.example.com/product/
.我在下面的路径中放置了一些静态HTML文件,以便访问者可以访问www.example.com/product/documentation/
其中index.html
和其他HTML文件。
现在我可以很好地访问静态HTML文件,但是当我访问WordPress站点(即。www.example.com/product/
), 我得到一个403禁止的错误。
如何在保留对WordPress页面的访问权限的同时,使静态HTML文件在该URL上可用?
这是我的.htaccess
文件(我认为这是未修改的默认值)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
如果这个问题已经回答了,很抱歉,但我只发现了关于显示静态内容而不是WordPress内容的问题。