wordpress只有主页能访问,其他菜单不能访问 Custom Permalinks Return 404 Errors
来源:互联网 发布:php简单后台html5源码 编辑:程序博客网 时间:2024/06/05 18:58
转的外文。原文地址 https://theme-fusion.com/knowledgebase/custom-permalinks-return-404-errors/
If you are getting 404 error when accessing pages, please see the information below.
Symptom: I just setup my WordPress installation and my awesome new Avada theme. I went into Admin -> Settings -> Permalinks and selected something other than the default option. But now when I try and navigate to a page, it just returns a generic “404 Error – Page not found” message. What gives?
Likely causes: First, this is not a theme issue. The problem involves your core WordPress installation, or your web server configuration. That said, there a few things that can cause this to happen:
- Apache II mod_rewrite module is not being loaded by your web server.Your WordPress .htaccess file is missing or not writeable by the web server.Apache II is configured to disallow overrides by your .htaccess file.
Solutions: There are several solutions to this issuse, please see the bulleted list below.
- First make sure that mod_rewrite is installed and enabled on your Apache II web server, and also make sure that the webserver allows your .htaccess file to override the server directory configuration.Make sure that your WordPress .htaccess file is present in your WordPress installation. If it is not, simply create a blank file called .htaccess and upload it to your WordPress installation folder.Set permissions on your .htaccess file that allows your web server to write to the file – CHMOD 666.Go back and set your permalinks option to the “default” option and save the change. Then set it to something other than the default and save the change.If your .htaccess file is writeable by the web server, it will contain new directives that sets rewrite rules for your custom permalink option.If it is not writeable, you will see a message below your permalinks screen that contains the rule set you need to add manually into your .htaccess file, save it, and upload it back to the WordPress installation folder.Check to see if you can navigate from your front page menu links without error.If the issue persists, contact your web host support team for further assistance.
How to configure the Apache mod_rewrite module
- Open the Apache configuration file located at/etc/httpd/conf/httpd.conf
- Change AllowOverride None to AllowOverride Allinside the DocumentRoot Directory Directive, normally<Directory "/var/www/html">
- wordpress只有主页能访问,其他菜单不能访问 Custom Permalinks Return 404 Errors
- shareddocs能访问 其他不能访问
- tomcat主页能访问,但项目不能访问的解决方法
- nginx配置https之后只有首页能访问,其他页面404
- IIS站只能访问到默认页面(主页),但是不能访问到其他页面
- Eclipse 配置tomcat不能访问主页问题解决
- eclipse中tomcat不能访问主页
- tomcat访问主页报404
- 在个人机器(XP系统)上安装Oracle后本地能访问,而其他机器不能访问的问题
- 虚拟机ubuntu net模式,主机能访问,局域网其他机器不能访问虚拟机。虚拟机要用桥接模式。
- wordpress更改IP后,不能访问问题
- Wordpress更换ip不能正常访问解决方法
- 部署thinkphp时遇到只显示主页访问其他页面404的错误
- Wordpress主页不能正常显示
- 能ping通, 不能访问 解决办法
- 能ping通但是不能访问工作组
- 本机可以访问iis服务器,其他机器不能访问?
- mediawiki 只能本机访问 其他电脑不能访问
- 一个判断三角形形状的小程序
- 图片下载简单处理
- 传入两个中文地点,解析成坐标点,并且在地图上显示出它们之间的路线图
- 汉诺塔的非递归算法
- NSNotificationCenter 的使用详解
- wordpress只有主页能访问,其他菜单不能访问 Custom Permalinks Return 404 Errors
- InnoDB next-key locking
- ReentrantLock实现探究
- Android 让子线程更新UI
- 整理-分类-朴素贝叶斯分类-垃圾邮件检测
- JS计算浮点数加减乘除精确数值的方法
- iOS 夜间模式的简单实现
- MVC缓存
- android工厂类