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"
2013年江苏满分作文2016江苏高考语文优秀作文2015高考新课标作文2015成都三诊作文立意2016年春考英语作文2013年江苏满分作文2015年春考作文题2015高考新课标作文2016高考海淀一模语文作文2015英语作文题目是啥?2016创新杯作文2013年江苏满分作文2016秋季高考作文范文2016创新杯作文2015高考新课标作文2015英语作文题目是啥?2011年新课标满分作文2016高考丙卷满分作文2016高考丙卷满分作文2014年5月24 雅思作文200字描写人的作文大全2013年新课标作文题目2004年广西高考作文题2015年高考浙江卷作文题目2016年春考英语作文2014成都三诊作文立意2015成都三诊作文立意2013广东高考作文满分2014年5月24 雅思作文2016秋季高考作文范文主群像(看书请自配合适音乐,会更有代入感)qq群856294031无敌十亿纪元的他,绝对的强大,绝对的随心所欲,投身轮回,改变众生的命运,也领略众生的悲欢离合...(无女主无敌文,主角淡漠超然,杀伐果断,无特定主线,偏向在无数个世界欣赏人生百态)前期都市篇如果可以的话,我愿意陪你再来一次我叫十七是一个苦命的上班族,每天的日常就是加班当我以为我的一生会以这样的方式度过我的余生时,我收到了一通电话。。。。天生阴命,25岁我开启了阴体,可见鬼神,可伤鬼神,是阎王爷派来凡间受罚的鬼差,在我眼中,蛇虫鼠蚁,花鸟鱼虫皆是鬼怪,冥冥中,一切皆由因果起,一切皆由因果灭,鬼怪之争惊天动地,且看我如何化解……热闹繁华的京城长安发生了一起大案,御史刘文龙被杀,京兆尹崔值奉圣命查案,捕头李成峰和师妹唐婉二人与杀手展开惊心动魄的争斗。最后凶手被诛。二人隐入山中。作品不能超过十二字,抱歉。 本文真正的名字叫…… 《某只白切黑病娇小獾来到了嘻疯骑士团任职的这件事情》 至于作者那两本没更两章的书…… 我会补的!世间本不太平,少年又恰恰风华正茂,一路高歌。 穷奢极欲,物欲横流,理想的乌托邦撞向现实的远方,蓬勃生长,伟岸的力量。李十一把玩着手中的骰子,戏谑的问尸王:敢不敢与我堵上一把? 这一次我赌上人类的未来! 丧尸横行,人心难测,秩序崩塌,强者为王。 把一切命运交给骰子本故事纯属扯淡虚构,如有雷同,不胜荣幸。 0260年12月24日平安夜,米国旧铜山首现大批海兽,全城人民无一幸存! 0261年4月23日,北熊国出现6级海兽,全国沦陷! 0262年1月1日,新年第一天,华夏出现10级海兽,代号【饕餮】,华夏沦陷! ...... 0260年1月,华夏战神臣风重生到海兽爆发十一个月前。 他赢得高层信任,将在华夏近两万公里的海岸线上铸起一座钢铁长城! 外媒惊为:东方奇迹! “求求臣战神,打开国门放我们进去!” “我们要呼吸东方没有血腥味的空气!”
我不是剑仙啊 重生赎罪,回到妻离子散之前 我有超能力之通天炎武 有请领主大人 鸿蒙雷帝 兴安岭日记 仙玄御界 贪婪之种 双剑魔 被仙界除名竟成妖族王者 足球引路人 诡丧之城 火影忍者穿越到日向家 救命!这药店不能待了! 映入现实 九天神帝 异星生存之制霸宇宙 天下第一炼器师 逆道焚天: 争天帝战 200字运动会作文大全 2015英语作文题目是啥? 2011年新课标满分作文 2016高考丙卷满分作文 200字运动会作文大全 200字描写人的作文 2003年高考作文 辽宁 2016丙卷语文作文范文 2014成都三诊作文立意 2016秋季高考作文范文 2004年广西高考作文题 2004年广西高考作文题 2015年高考浙江卷作文题目 2015英语作文题目是啥? 2014江苏高考高分作文 2016年春考英语作文 2016高考4字满分作文 2014成都三诊作文立意 2016江苏高考语文优秀作文 2013年江苏满分作文 2014年新课标1作文 2015高考新课标作文 2016江苏高考语文优秀作文 2013年新课标作文题目 2016丙卷语文作文范文 2015年高考浙江卷作文题目 2014成都三诊作文立意 2016江苏高考语文优秀作文 200字描写人的作文大全 2014成都三诊作文立意 2016高考丙卷满分作文 2014年新课标1作文 2015成都三诊作文立意 2013年江苏满分作文 2015年高考浙江卷作文题目 2016年春考英语作文 2015年全国1卷英语作文 2003年高考作文 辽宁 2015年高考浙江卷作文题目 2015年全国1卷英语作文 2016年春考英语作文 2016全国卷1英语作文题 2014年5月24 雅思作文 2016高考4字满分作文 2016创新杯作文 2014年新课标1作文 2004年广西高考作文题 2016年春考英语作文 2016课标全国1作文 2015年春考作文题 亚星官网 亚星游戏官网 亚星游戏官网 亚星官网 亚星游戏官网 苍生令:万族之主 御灵剑神 钓鱼修仙之路 开局随机选择仙门2 全球末日:庇护所无限升级 亚星管理平台 亚星官网 万利游戏官网 亚星管理平台 澳门葡京官网 2003年高考作文 辽宁 2016创新杯作文 2014成都三诊作文立意 2014成都三诊作文立意 2015英语作文题目是啥? 2016丙卷语文作文范文 2013年新课标作文题目 2011年新课标满分作文 2016全国卷1英语作文题 2016江苏高考语文优秀作文 2015年高考浙江卷作文题目 2016创新杯作文 2015作文琢磨 2013广东高考作文满分 2015英语作文题目是啥? 2013年江苏满分作文 2016创新杯作文 2013年新课标作文题目 200字运动会作文大全 2004年广西高考作文题 2016高考丙卷满分作文 2013年新课标作文题目 2015高考新课标作文 2015成都三诊作文立意 2016创新杯作文 2015英语作文题目是啥? 2015年春考作文题 2013广东高考作文满分 2015高考新课标作文 200字描写人的作文大全