我有一个wordpress网站,在根目录中有一个名为/ideal/的文件夹。
/ideal/文件夹的功能是通过访问者通过网站付款。
一段时间以来一切正常,因为几天页面出现了问题。
当我导航到我的网站时 http://www.nibincasso.nl/ideal/它会显示 404 错误。
随着wordpress 4.0的发布,看起来wordpress正试图为文件夹/ideal/创建某种动态链接。
但是,我希望它作为静态页面打开,而不是使其成为wordpress动态页面。"http://www.nibincasso.nl/ideal/index.php"。
.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
有人可以帮助我解决这个问题吗?
亲切问候
法比
更新*
我在根目录上创建了一个带有空白索引的新子目录.php页面只显示测试这个打开正常。但是当我尝试使用索引输入子目录/ideal/时.php出现 404 错误。怎么来了?
尝试以下
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ideal/
RewriteRule ^index'.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /ideal/index.php [L]
</IfModule>
# END WordPress
/ideal/文件夹中索引内的 php 代码似乎有问题。我将寻找解决方案,这不是wordpress问题。
感谢您到目前为止对我的帮助。