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"
家里甜蜜的事作文嘉定未来的一天作文家乡的风景美作文400字作文家庭与亲情的作文小学坚守本心作文600字家里甜蜜的事作文杭州旅游的英语作文家乡的风景美作文400字作文家有 小学作文怎么写黄山简单介绍英语作文湖北二模语文作文家里甜蜜的事作文假期见闻作文三年级湖北二模语文作文家乡的风景美作文400字作文环境保护作文600字学校家的故事作文600坚守自己的作文坚守本心作文600字家庭与亲情的作文600字假如我是大富豪作文坚守自己的作文家有 小学作文怎么写机器人控制人类的作文家有什么什么作文600字记一件趣事英文作文500字家有什么什么作文600字家有600字作文开头家庭与亲情的作文600字环境保护英语作文题目三年前,他破产落败,从天堂跌落地狱,尝遍了人情冷漠,白眼奚落,谩骂针对。 三年后,他携一身本领强势回归! 他是神医,也是杀神!不论你是想活命,还是想见阎王,都一个一个来!捞尸人的禁忌有很多,可总有人不相信,说是歪门邪道。 这不,带着校花总裁下一次水,捞一次尸。 她竟非逼着我和她生猴子!明明社交恐惧,干的却是销售;明明多愁善感,做的却没心没肺;明明想好好表现,却也是一事无成!本作品是一部相对严肃、严谨的历史小说,讲述的是夏商之交夏、商斗争的故事。本书收集了古书中关于夏商之际所有记载,包括近年来公布的出土文献的记载及部分历史研究和考古资料,其中既有历史记载也有神话传说,通过演绎和艺术加工,详细讲述夏商之际的故事,结构宏大,内容丰富,既有曲折的故事,也有很多的知识点,读了不会让您失望。说出来你可能不信,现在我被成千上万的敌人包围着,而陪我的只有手中这展大旗,虽然我内心是非常害怕的,但是我不得不说出那句:“我为人族扛大旗,人族有我真无敌!!!” 叶墨带着记忆重生,来到了明朝,只是这里却和想象中不太一样。 在这里,有江湖 在这里,有权谋 在这里,有恩怨情仇 在这里一切的一切都将重新开始。在这崭新的大明中,且看叶墨如何书写自己的奋斗史。李晋死了,还穿越到了游戏世界 他这辈子最大的遗憾就是强化了那把武器 而今他成为了可以强化武器的npc “勇士,今日装备锻造88折哦~” 屠龙者终成恶龙 XX年间,天下大乱,群妖四起,官兵横行,百姓民不聊生。 天上众神,心疼百姓,特派紫微星下界,斩妖除魔,匡扶正义,救黎明于水火。 紫微星领命,下到人间,化身一名女子,隐居山间,观察人间百态,看遍民间疾苦,可悲可叹!神魔的游戏,养蛊人类,是举刀拿剑逆战万族,还是低眉俯首甘为奴仆,普通人的野望,你我是否都幻想过打破秩序,生与死,血与泪,离别与重逢,种种的选择,这是一部笑中含泪的作品,且看普通人如何末世中挣求活,选择自己的人生。为了赚钱,开始玩三国游戏,没想到玩着玩着,全服第一就抢到手了!
你好,穿越人 大道弑神 天赐神机 人在娘胎:一脚踹飞重生女帝 灵古之地 天武医婿 网游之星日 传说之带来明日的朝霞 丧尸末世:菜狗也怕死 灰渊增殖 神之六冠 奇剑幻魔录 以气至上 生命之树one 居易的诗集 武林公敌 天轮回道回忆录 枭主:大元黑公子 都市:校园武道高手 龙御飞天 记一件趣事英文作文500字 环境保护作文600字学校 家乡的风景美作文400字作文400字 坚守本心作文600字 嘉定未来的一天作文 家有600字作文开头 家乡的风景美作文400字作文400字 很容易考的作文 活出自己作文高中 假期见闻作文三年级 家训家规家风高中作文 家训家规家风高中作文 机器人控制人类的作文 环境保护作文600字学校 家里甜蜜的事作文 家有什么什么作文600字 坚持是我的朋友作文800字 记一件趣事英文作文500字 记得一次升旗活动作文 家乡的风景美作文400字作文 环境保护作文600字学校 家乡的风景美作文400字作文 记得一次升旗活动作文 坚守自己的作文 黄山简单介绍英语作文 家庭与亲情的作文 记一件趣事英文作文500字 记得一次升旗活动作文 记得一次升旗活动作文 活出自己作文高中 坚守本心作文600字 活出本性高中作文 家庭与亲情的作文小学 家里甜蜜的事作文 机器人控制人类的作文 家有什么什么作文600字 家庭与亲情的作文小学 家乡的风景美作文400字作文400字 机器人控制人类的作文 家有什么什么作文600字作文开头 家有什么什么作文600字 很容易考的作文 家庭与亲情的作文600字 坚持是我的朋友作文800字 湖北二模语文作文 活出本性高中作文 家训家规家风高中作文 家有什么什么作文600字 家庭与亲情的作文 家的故事作文600 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 我的穿越门 亡灵之友 人间华夏史 辉光之界 烟泷一枪客 皇冠登3出租 亚星管理平台 澳门葡京游戏官网 皇冠登3出租 亚星游戏官网 家庭与亲情的作文600字 湖北二模语文作文 环境保护作文600字学校 活出本性高中作文 家里甜蜜的事作文 家有 小学作文怎么写 记一件趣事英文作文500字 家乡的风景美作文400字作文 家庭与亲情的作文小学 家乡的风景美作文400字作文 杭州旅游的英语作文 家有什么什么作文600字作文开头 坚守本心作文600字 坚守本心作文600字 家庭与亲情的作文600字 家有600字作文开头 活出本性高中作文 坚持是我的朋友作文800字 家有 小学作文怎么写 家训家规家风高中作文 很容易考的作文 家有爱作文500字 家庭与亲情的作文小学 很容易考的作文 环境保护英语作文题目 很容易考的作文 家有600字作文开头 假期见闻作文三年级 家乡的风景美作文400字作文400字 记一件趣事英文作文500字