ERROR 404 - PAGE NOT FOUND

Why am I seeing this page?

404 means the file is not found. If you have already uploaded the file then the name may be misspelled or it is in a different folder.

Other Possible Causes

You may get a 404 error for images because you have Hot Link Protection turned on and the domain is not on the list of authorized domains.

If you go to your temporary url (http://ip/~username/) and get this error, there maybe a problem with the rule set stored in an .htaccess file. You can try renaming that file to .htaccess-backup and refreshing the site to see if that resolves the issue.

It is also possible that you have inadvertently deleted your document root or the your account may need to be recreated. Either way, please contact HostGator immediately via phone or live chat so we can diagnose the problem.

Are you using WordPress? See the Section on 404 errors after clicking a link in WordPress.

How to find the correct spelling and folder

Missing or Broken Files

When you get a 404 error be sure to check the URL that you are attempting to use in your browser.This tells the server what resource it should attempt to request.

http://example.com/example/Example/help.html

In this example the file must be in public_html/example/Example/

Notice that the CaSe is important in this example. On platforms that enforce case-sensitivity example and Example are not the same locations.

For addon domains, the file must be in public_html/addondomain.com/example/Example/ and the names are case-sensitive.

Broken Image

When you have a missing image on your site you may see a box on your page with with a red X where the image is missing. Right click on the X and choose Properties. The properties will tell you the path and file name that cannot be found.

This varies by browser, if you do not see a box on your page with a red X try right clicking on the page, then select View Page Info, and goto the Media Tab.

http://example.com/images/banner.PNG

In this example the image file must be in public_html/images/

Notice that the CaSe is important in this example. On platforms that enforce case-sensitivity PNG and png are not the same locations.

404 Errors After Clicking WordPress Links

When working with WordPress, 404 Page Not Found errors can often occur when a new theme has been activated or when the rewrite rules in the .htaccess file have been altered.

When you encounter a 404 error in WordPress, you have two options for correcting it.

Option 1: Correct the Permalinks

  1. Log in to WordPress.
  2. 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.)
  3. Select  Default.
  4. Click Save Settings.
  5. Change the settings back to the previous configuration (before you selected Default). Put the custom structure back if you had one.
  6. Click Save Settings.

This will reset the permalinks and fix the issue in many cases. If this doesn't work, you may need to edit your .htaccess file directly.

Option 2: Modify the .htaccess File

Add the following snippet of code to the top of your .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

If your blog is showing the wrong domain name in links, redirecting to another site, or is missing images and style, these are all usually related to the same problem: you have the wrong domain name configured in your WordPress blog.

How to modify your .htaccess file

The .htaccess file contains directives (instructions) that tell the server how to behave in certain scenarios and directly affect how your website functions.

Redirects and rewriting URLs are two very common directives found in a .htaccess file, and many scripts such as WordPress, Drupal, Joomla and Magento add directives to the .htaccess so those scripts can function.

It is possible that you may need to edit the .htaccess file at some point, for various reasons.This section covers how to edit the file in cPanel, but not what may need to be changed.(You may need to consult other articles and resources for that information.)

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

The easiest way to edit a .htaccess file for most people is through the File Manager in cPanel.

How to Edit .htaccess files in cPanel's File Manager

Before you do anything, it is suggested that you backup your website so that you can revert back to a previous version if something goes wrong.

Open the File Manager

  1. Log into cPanel.
  2. In the Files section, click on the File Manager icon.
  3. Check the box for Document Root for and select the domain name you wish to access from the drop-down menu.
  4. Make sure Show Hidden Files (dotfiles)" is checked.
  5. Click Go. The File Manager will open in a new tab or window.
  6. Look for the .htaccess file in the list of files. You may need to scroll to find it.

To Edit the .htaccess File

  1. 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.
  2. A dialogue box may appear asking you about encoding. Just click Edit to continue. The editor will open in a new window.
  3. Edit the file as needed.
  4. Click Save Changes in the upper right hand corner when done. The changes will be saved.
  5. 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.
  6. Once complete, you can click Close to close the File Manager window.
This site is hosted by HostGator!
Build your website today and get 20% off! Coupon code: "OFFER404"
乔布斯用英语作文求知的权利 作文乔布斯用英语作文亲子运动会的作文350字亲近诗文作文陪伴作文排比开头浅析中考作文得与失牵动心灵的600字作文你与同学发生的事作文400字作文400字作文400字溺水时如何自救作文青蛙保护庄稼的作文乔布斯用英语作文蒲公英外形和作用作文谦恭作文300字牵动心灵的600字作文溺水时如何自救作文亲人对我的帮助作文400字期中考试500字作文怎么写期中考试500字作文怎么写青春是什么作文?情怀议论文作文素材期中考试500字作文怎么写你与同学发生的事作文400字作文400字作文400字你的专业选择英语作文亲近诗文作文清洁区扫地的作文亲子运动会的作文350字你的专业选择英语作文青春是什么作文?蒲公英外形和作用作文嘘,欢迎来到恐怖游戏,游戏现在开始了.....记录灵感浩瀚宇宙之中,地球文明之外,是否还有其他的文明?除了地球人之外,别的星球是否还有与地球人类似的外星人? 国家航天局在月球表面建造基地,用以科学探索,无意之中发现竟然有月球人存在,他们又是如何构造自己的文明?莫非应和图灿分离后换上了“双重人格”,三年后图灿回来第一件事就是找他,没想到在小姨的精神病院找到。同时她也没想到,她的男友居然是她的同类,她好不容易(意外)治好了莫非,却发现莫非居然不是人,但这并不妨碍他们在一起,莫非:“把我弄成这个样子,可要好好负责。”图灿一边流着口水一边说:“好好好。”活在这个动乱的年代,身为江湖大佬的许锐锋已经很疲惫了,当他准备相亲过点小日子时,没想到竟然相亲相回来一个间谍…… 她,深入敌营窃取情报; 她,组建底下情报网络向中央传递信息; 她,在敌后无孔不入,备受嘉奖。 当全世界都以为这个女人是王牌特工时,她,却矮下了身子正在给许锐锋洗脚。 因为她知道,没有这个男人,自己早死了成千上万回,而整个北满的日本人都在以抓到这个男人为荣。 他,就是北满第一杀手,左手枪王,北满地下秩序的统帅,大老许。穷困潦倒的大学生陈阳,在经历种种不顺后,意外获得传承,入赘豪门,从此有了开挂的人生……以民间传说及史实为资料,详细介绍了三国鼎立之前的故事,不一样的的三国,尽在《史书三国传》中一代战神,因失去记忆,流浪街头,却稀里糊涂成为了秦城豪门朱家的女婿。 受尽欺辱的他,受到重创,记忆恢复,王者归来。 且看他如何收拾曾经欺辱过他的宵小之辈?如何踩着那些为富不仁之徒踏上世界之巅?如何千里走单骑救父母于危难之中? 他就是令边境悍匪和国际雇佣兵闻风丧胆的龙国战神龙之刃林灿。OMG!这是什么金手指啊? 别人的金手指都是牛B克里斯的存在,为何到了自己这里就是一个盗贼? 本人虽然不是顶尖美男子,但好歹也不赖啊,我就那么像贼吗? ...... 系统,我恨你!徐辰一朝穿越发现自己的的幸运值居然是满的?每次开卡别人白光一片,自己却时时出金,而且几乎都是战斗力又高,颜值又高的美少女?“不是你们也太弱了吧,连我卡灵一击都扛不下来啊!”众人满头黑线,你这幸运值开挂的人别人打得过???
左不比传奇 游戏太菜,死后入游戏地狱 夺夜之光 都市最强高富帅 将军眉 魔法史诗 人生有悔 霸血龙神 三国:灵堂诈尸,开局吓哭蔡文姬 进激的体育老师 四个月的爱 玉绫璃 剑入仙道 修真仙械师 追寻山海经 枭主:大元黑公子 小七的神奇一生 元素大陆的异能者 缘聚缘散缘起缘灭皆为天意 德云社:总教习黄昏共勉 亲情作文事例素材万能 勤劳的农民作文怎么写 亲人对我的帮助作文400字 期中考试500字作文怎么写 亲情作文事例素材万能 你让我尊敬作文800 七年级写人作文400字 拼车的英语作文 清洁区扫地的作文 蒲公英外形和作用作文 你与同学发生的事作文400字作文400字作文400字 青春的路上有梦想作文 你教育了我作文600字 溺水时如何自救作文 陪伴作文排比开头 亲近诗文作文 七年级写人作文400字 清洁区扫地的作文 情怀议论文作文素材 乔布斯用英语作文 勤劳的农民作文怎么写 牵动心灵的600字作文 求知的权利 作文 谦恭作文300字 溺水时如何自救作文 你教育了我作文600字 清洁区扫地的作文 求知的权利 作文 情怀议论文作文素材 清洁区扫地的作文 亲近诗文作文 勤劳的农民作文怎么写 启迪的作文300个字 乔布斯用英语作文 你的专业选择英语作文 亲近诗文作文 启迪的作文300个字 亲人对我的帮助作文400字 你教育了我作文600字 牵动心灵的600字作文 亲子运动会的作文350字 朋友就是财富作文600字 期中考试400字感想作文600字 青春的路上有梦想作文 谦恭作文300字 勤劳的农民作文怎么写 青春的路上有梦想作文 亲子运动会的作文350字 青春是什么作文? 浅析中考作文得与失 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 剑飞大陆 与我同在 你假装修炼一下吧,球球了! 异变灵界 重生之财色我都要 快连下载 亚星管理平台 亚星游戏官网 快连下载 亚星管理平台 亲近诗文作文 七年级写人作文400字 牵动心灵的600字作文 求知的权利 作文 谦恭作文300字 青春是什么作文? 青春路上多作文 青春路上多作文 乔布斯用英语作文 牵动心灵的600字作文 你教育了我作文600字 谦恭作文300字 启迪的作文300个字 蒲公英外形和作用作文 溺水时如何自救作文 情怀议论文作文素材 亲近诗文作文 亲人对我的帮助作文400字 亲情作文事例素材万能 蒲公英外形和作用作文 青春是什么作文? 青春无悔作文演讲稿 青春路上多作文 期中考试500字作文怎么写 陪伴作文排比开头 乔布斯用英语作文 你的专业选择英语作文 青春是什么作文? 清洁区扫地的作文 亲子运动会的作文350字