使用默认的Permalink设置'/?p=123‘对我来说对每一个页面都很好,它显示了网站urls,如“://mywebsite/solutions/? page _id=580”,但是
当我将其更改为/%postname%/或除permalinks默认设置之外的任何其他类别时,它会给出以下错误:“错误页未找到”
根文件夹中的.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谢谢您的帮助。
发布于 2014-12-06 07:32:00
您能尝试用以下内容替换.htaccess吗?看起来您已经在一个名为“解决方案”的子文件夹中安装了WordPress。
# BEGIN WordPress
RewriteEngine On
RewriteBase /solutions/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /solutions/index.php [L]
# END WordPresshttps://wordpress.stackexchange.com/questions/170433
复制相似问题