WordPress NOT FOUND the request url was not found on this server.

2018年8月28日遇到WordPress请求URL未找到问题,原因是服务器url rewrite模块未安装或未开启。给出在Nginx上为WordPress固定链接配置Rewrite的参考链接,实际使用apache解决,需修改服务器/etc/httpd/conf/httpd.conf文件,安装启动rewrite模块。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

日期:2018年8月28日

问题:NOT FOUND the request url /wordpress/category/topic/ was not found on this server.

解决:
服务器url rewrite模块未安装或未开启。
在Nginx上为WordPress固定链接配置Rewrite: http://www.bjhee.com/nginx-rewrite.html
官方文档参考设置:https://codex.wordpress.org/Nginx

实际使用apache
解决,修改服务器/etc/httpd/conf/httpd.conf文件。安装启动rewrite模块。
1.开启rewrite_module。查找以下语句,去掉前面的#。启动。若无该语句,在LoadModule模块的最后一句后面加上。
LoadModule rewrite_module modules/mod_rewrite.so
2.修改以下代码中“ AllowOverride None” 为“ AllowOverride All”

<Directory "/var/www/html">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值