WordPress publishing fail

WordPress 出现publishing fail或者The requested URL was not found on this server问题解决办法

.htaccess文件中的增加mod_rewrite规则

cat /var/www/html/.htaccess 

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

修改apache服务器httpd配置文件/etc/httpd/conf/httpd.conf


    Options Indexes FollowSymLinks

    AllowOverride All

    Require all granted    



    Require all granted 

重启服务

systemctl restart httpd.service

你可能感兴趣的:(wordpress)