Wordpress Permalink自定义Url/index.php/%postname正在工作,而/%postname不工作

Wordpress Permalink自定义Url/index.php/%postname正在工作,而/%postname不工作,wordpress,Wordpress,我已将我的网站上载到服务器,当我尝试更改permalink时,它仅与/index.php/%postname一起工作 /index.php/%postname/%都不起作用,/%postname/*也不起作用 提前感谢….将下面的代码放入wordpress站点目录中的.htaccess文件中。验证.htaccess文件中是否已存在类似代码。如果存在,请用以下代码替换。如果不存在.htaccess文件,请使用以下代码创建一个 # BEGIN WordPress <IfModu

我已将我的网站上载到服务器,当我尝试更改permalink时,它仅与
/index.php/%postname
一起工作

/index.php/%postname/%
都不起作用,
/%postname/*
也不起作用


提前感谢….

将下面的代码放入wordpress站点目录中的.htaccess文件中。验证.htaccess文件中是否已存在类似代码。如果存在,请用以下代码替换。如果不存在.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
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress