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"
考试为主题写一篇作文快速写好英语作文科技手抄报作文六一儿童节节作文六级试卷作文真题考试为主题写一篇作文考研英语2小作文科技手抄报作文六年级珍惜学校作文留在春天的足迹作文800字令人难忘的错作文600字考试为主题写一篇作文六年级下册写景100作文大全竞争的英语作文120科技手抄报作文留在春天的足迹作文800字李延隆gre作文恪守诚信作文初二恪守诚信作文初二军人最可爱的人作文劳动者最光荣作文500字恪守诚信作文初二六年级珍惜学校作文快乐童年作文议论文六级试卷作文真题刘小姐辞职材料作文六一儿童节节作文留下人生足迹作文邻人感动的一件事作文六年级下册写景100作文大全无聊让我们相遇。。。历史系单身狗秦墨穿越大乾,成了秦国公家的憨子世子。 本想斗鸡遛狗潇洒过一生,可大家都逼他! 秦国公:儿子,我求你,把公主娶了吧! 大乾皇帝:贤婿,你乃朕的福星,这大乾的驸马,你当也要当,不当也要当。 太子:我的好妹婿,没有你的扶持,大舅哥帝位不稳呐! 百官:秦憨子,我们跟你拼了! 异族:秦憨子乃我族最大之敌! 公主:秦憨子,你敢不要我,我就跟你拼命! 冷风如刀,以大地为砧板视众生为鱼肉;飞雪似剑,以苍穹为帷幔斩现实为红尘。 天下纷扰由剑起,世间忧愁识字出。 吾愿以己为祭品,换得世间永太平。 【新书发布,只为创造经典】?少年历程,帝者之路。艰难险阻,厄重困 苦;红颜知己,贵人相助。 于追寻探索中揭秘,为保护亲人而变强,在经历 过程中造就。少年崛起,成为真我;一人成帝, 亦可为天。 世界末日,一场危机席卷全球,深渊、黑雾、高塔,是外星人降临地球,还是地底生物要重新统治世界,一切迷雾的源头尽在仙魔屠戮场。隐藏在现在科技之下的修士世界,逐渐显露出来。作为修士的古潼往来于修士界与大世界之间,逐渐发现自己正身处与一个无边的漩涡之中。过往一点一点化作历史,直至消失无踪。他不明白身边的人都是为何而来,也看不明白自己的过去和未来,直到他触碰到漩涡中心的那一刻……秦峰意外穿越三国,成了一名普通士兵。 虎牢关城外,大战三国第一猛将,他出尽风头。 洛阳城外赶董卓,冀州驱逐袁绍,中原群雄逐鹿。 练绝世雄兵,造超级武器,拥绝世美女,收绝世猛将,纳顶级谋士。 秦峰率领北方铁骑,横扫天下,一统三国。 试问天下,谁人能比。 从士兵到枭雄,秦峰一路走来,成就王者传奇,我秦峰才是天下霸主。 读者群(246835683)感兴趣的可以加群,一起交流学习。一个大学生,毕业后竟然沦为宅男,每天沉迷于网络。当一天,他收到一个网站后竟然穿越到了一个神秘的朝代。当男主醒来睁开眼发现自己穿越到一个综武世界,只要破案准确,判案公道,就能获得武功秘籍,内力修为等各种奖励。从此,凌昊一步步开启了富可敌国,七国驸马,武林至尊的无敌之路...学生杨小东,无意中卷入一次激烈的足球赛后,便真正地热爱上了足球,经过一番刻苦的锻炼,更有一段离奇的经历,杨小东渐渐成长为了新的球王,他带领着自己的球队南征北战,东闯西杀,战绩辉煌,创造了一个又一个炫丽的神话……
何为天下第一城? 对不起,我是反派 奶爸的黄金农场 我,修仙废物,御兽奇才 玄幻,我要诛了这三界! 混在NBA的奥斯卡影后 三国从杀敌爆装备开始崛起 百合花我的救赎 硫磺城 龙陨时代 梦幻三界之九天绝恋 全民游戏:我带鬼王出副本 血影者 玄元者奇闻 封神之我没想和女娲谈恋爱 迪卢克的樱花连 我本一书生,娶妻万人屠! 上有九天 万古第一神 异世:学神崛起 老梁猜高考作文题 六年级的作文题 科技手抄报作文 快速写好英语作文 老梁猜高考作文题 六年级下册写景100作文 六一儿童节的作文200 快乐童年作文议论文 留在春天的足迹作文800字 军人最可爱的人作文 六级试卷作文真题 六一儿童节节作文 六年级下册写景100作文大全 留下人生足迹作文 李延隆gre作文 劳动者最光荣作文500字 六一同学的礼物作文 刘小姐辞职材料作文 劳动者最光荣作文500字 考试为主题写一篇作文 老梁猜高考作文题 科技手抄报作文 快速写好英语作文 竞争的英语作文120 留在春天的足迹作文800字 快乐童年作文议论文 刘小姐辞职材料作文 快速写好英语作文 劳动者最光荣作文500字 刘小姐辞职材料作文 六级试卷作文真题 老梁猜高考作文题 六一儿童节节作文 考试为主题写一篇作文 留下人生足迹作文 六级试卷作文真题 六一儿童节的作文200 六一同学的礼物作文 快乐童年作文议论文 六一儿童节的作文200 六级试卷作文真题 精彩的生命600字作文开头 军人最可爱的人作文 六年级毕业考作文范文 竞争的英语作文120 老梁猜高考作文题 六年级珍惜学校作文 六一儿童节节作文 邻人感动的一件事作文 考研英语2小作文 亚星官网 亚星官网 亚星游戏官网 亚星官网 亚星官网 从一杯恒河水开始进化 又见海棠镇 通天偷看我日记,截教全员成圣了? 长老, 无心之物 万利官网 欧博官网 皇冠登3出租 万利官网 快连下载 开心动物园作文400字 六年级下册写景100作文大全 六级试卷作文真题 刘小姐辞职材料作文 邻人感动的一件事作文 开心动物园作文400字 令人难忘的错作文600字 恪守诚信作文初二 篮球生母爱作文600字 竞争的英语作文120 六年级下册写景100作文 科技手抄报作文 六年级的作文题 考研英语2小作文 快乐童年作文议论文 恪守诚信作文初二 老梁猜高考作文题 令人难忘的错作文600字 开门见山法的作文 六年级毕业考作文范文 开门见山法的作文 老梁猜高考作文题 科技手抄报作文 开门见山法的作文 开心动物园作文400字 科技手抄报作文 六级试卷作文真题 六年级下册写景100作文大全 六级试卷作文真题 六年级的作文题