详细介绍
ERROR 404 - PAGE NOT FOUNDWhy am I seeing this page?Other Possible CausesHow to find the correct spelling and folderMissing or Broken Fileshttp://example.com/example/Example/help.htmlBroken Imagehttp://example.com./cgi-sys/images/banner.PNG
404 Errors After Clicking WordPress Links
Option 1: Correct the Permalinks
Log in to WordPress.
From the left-hand navigation menu in WordPress, click Settings > Permalinks (Note the current setting. If you are using a custom structure, copy or save the custom structure somewhere.)
Select Default.
Click Save Settings.
Change the settings back to the previous configuration (before you selected Default). Put the custom structure back if you had one.
Click Save Settings.
Option 2: Modify the .htaccess File
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# End WordPress
How to modify your .htaccess file
There are Many Ways to Edit a .htaccess File
Edit the file on your computer and upload it to the server via FTP
Use an FTP program's Edit Mode
Use SSH and a text editor
Use the File Manager in cPanel
How to Edit .htaccess files in cPanel's File Manager
Open the File Manager
Log into cPanel.
In the Files section, click on the File Manager icon.
Check the box for Document Root for and select the domain name you wish to access from the drop-down menu.
Make sure Show Hidden Files (dotfiles)" is checked.
Click Go. The File Manager will open in a new tab or window.
Look for the .htaccess file in the list of files. You may need to scroll to find it.
To Edit the .htaccess File
Right click on the .htaccess file and click Code Edit from the menu. Alternatively, you can click on the icon for the .htaccess file and then click on the Code Editor icon at the top of the page.
A dialogue box may appear asking you about encoding. Just click Edit to continue. The editor will open in a new window.
Edit the file as needed.
Click Save Changes in the upper right hand corner when done. The changes will be saved.
Test your website to make sure your changes were successfully saved. If not, correct the error or revert back to the previous version until your site works again.
Once complete, you can click Close to close the File Manager window.
猜你喜欢
- 眷恋着幻影中的他-搜狐博客 - 电脑网络 > 域名空间
- 风云博客 - 风云 - 网 - 电脑网络 > 域名空间
- 首页-永恒数据主机-淘宝网 - 电脑网络 > 域名空间
- 飞库小说网,飞库电子书免费 - 电脑网络 > 域名空间
- 26366.cn,this - 电脑网络 > 域名空间
- 26366.cn,this - 电脑网络 > 域名空间
- 十堰315网站,十堰消费指 - 电脑网络 > 域名空间
- o﹏`傻佬 - ∑蕐滒仔| - 电脑网络 > 域名空间
- 26366.cn,this - 电脑网络 > 域名空间
- 26366.cn,this - 电脑网络 > 域名空间
- 大地博客 | 和大多数地球 - 电脑网络 > 域名空间
- PaperBlog.co: - 电脑网络 > 域名空间
- oメ壞愾⑩哫o的尕杰 - - 电脑网络 > 域名空间
- 新干线主机-硬防空间-高防 - 电脑网络 > 域名空间
- 26366.cn,this - 电脑网络 > 域名空间
- 美国服务器合租 | 行业典 - 电脑网络 > 域名空间
- 首页-Do Net 美国主 - 电脑网络 > 域名空间
- 万维网络工作室-东营网站建 - 电脑网络 > 域名空间
- 26366.cn,this - 电脑网络 > 域名空间
- 拼尚虚拟主机网-最便宜的, - 电脑网络 > 域名空间