WordPress显示404错误(首页除外)

时间:2018-08-08 08:13:46

标签: wordpress

这是我的.htaccess编码

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

<IfModule mod_alias.c>
    RedirectMatch 301 ^//(.*)$ http://powermatic.com.sg/$1
</IfModule>


# https://wordpress.org/support/topic/font-awesome-not-working?replies=8#post-4921179
# Allow icon font to load on subdomains of WordPress multisite install.

<FilesMatch ".(svg|ttf|otf|woff)$">
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>
# END WordPress

这是给改写的

<rule name="WordPress: http://powermatic.com.sg" enabled="true" patternSyntax="Wildcard">
                    <match url="*" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        <add input="http" pattern="powermatic.com.sg" />
                    </conditions>
                    <action type="Rewrite" url="index.php" />
                </rule>

wordpress文件位于inetpub / wordpress中

我已经尝试了永久链接方法并更改了httpd.conf中的编码 为此,全部AllowOverride

但仍然无法访问除主页以外的页面

请帮助

0 个答案:

没有答案