我正试图解决一个问题,链接都乱七八糟,看上去就像

我尝试过在public_html文件夹中使用.htaccess文件中的代码,链接现在正在使用index.php/%postname%/,但是我需要去掉index.php
# 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任何帮助都会很棒。谢谢
发布于 2016-10-02 08:53:21
经过几个小时的搜索和阅读,这就是我解决问题的方法。
步骤1:在根文件夹中创建一个.htaccess文件,并将代码放在那里。
# BEGIN
<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 第2步:提到这里

https://wordpress.stackexchange.com/questions/241247
复制相似问题