简体   繁体   English

即使在更改值,手动更新或编辑apache配置后,Wordpress永久链接也不起作用

[英]Wordpress permalink doesnot work even after changing the value, updating manually or editing apache config

I am deploying a wordpress site [Application made using CMS feature] in AWS instance[I have an ip address: example: 5.32.44.55] 我正在AWS实例中部署一个wordpress站点[使用CMS功能创建的应用程序] [我有一个IP地址:例如:5.32.44.55]

The homepage displays great. 主页显示很棒。 Rest of the pages shows 404 error 其余页面显示404错误

If I update the permalink: It works on basic one : ?page_id=sth 如果我更新永久链接:它适用于基本的:?page_id = sth

But once I make this with other setting, doesnot work. 但是一旦我用其他设置制作它,就行不通了。

Note: The menu link is given in page format: example.com/page 注意:菜单链接以页面格式给出:example.com/page

Tried to change it manually, gave all edit access, edited httpd config as well, nothing worked. 试图手动更改它,给予所有编辑访问权限,编辑httpd配置,没有任何效果。

The page should load without showing 404 errors. 页面应加载而不显示404错误。

检查Apache的mod_rewrite是否已启用。

  1. Go here - /etc/httpd/conf/httpd.conf 到这里 - /etc/httpd/conf/httpd.conf
  2. Change the 'AllowOverride None' line in the above section to read 'AllowOverride All' 将上一节中的“AllowOverride None”行更改为“AllowOverride All”
  3. Restart the Apache service 重新启动Apache服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM