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"
林动头像头像手绘林动头像戚氏头像圣堂萌头像m站头像达摩头像林动头像组头像武警头像动态猫咪头像林动头像和谐头像萌猫qq头像网图女生头像武警头像leo头像失败的头像失败的头像怎么画头像qq字头像大全失败的头像组头像鲁讯头像圣堂萌头像扣扣头像进个人空间的时候右上角边上的圆圈还挂一个横杠是什么意思戚氏头像鲁讯头像怎么画头像和谐头像这是一群天才在异世界求生的故事 穿越后,楚京只想苟住反派值,回去继承家产。   岂料引起公愤,被仙女粉丝穷追猛打。   行行行,打上瘾了?爷陪你打个够!   雾缈圣女:大家误会了,那天是我自愿的。 天命骄女:楚京,只要你肯原谅我,做什么都行。   魔界女帝:嗯?谁敢欺负本尊的宝贝徒儿?   剑修女神:喂,给你个机会,娶本小姐回家! 万古灵兽:主人,请尽情契约我吧~~~~ 楚京:疯了吧!我可是大反派啊! 众女:住嘴!姐妹们把人抓住!一人用一天! 楚京:你们休想得逞!女人,只会影响老子拔刀的速度! 正当徐风在全球进化爆发后的10年后,通过自己的努力,好不容易当上物资搜寻小队队长的时候,因为一场意外。穿越回全球进化的半年前……一部小说,几篇故事;作者无意,读者有缘;君来有声,君去无语;现实有界,幻想无边……一个异世界铁匠的传奇经历。冉宇莫名的被拉进一个叫末世生存游戏当中,看他在这个末日世界中谱写怎样的一段传奇。一代荣耀战神青面修罗,杨枭,执行绝密任务遭遇反杀,隐忍三年之后蛟龙出海,我的恩人,我可以千百倍的报答,我的仇人,你将承受我的怒火,这一生,仗剑走天涯,唯我独尊!欢迎小扑街道友入群,道友们请使劲蹂躏他。 羽族圣尊:“新人爆照,长得好看的话,送你几个大毛妞。” 羽族和人族的欣赏水平都差不多,都认为毛多的好看。 墨麒麟圣尊:“新人爆照、爆照。” 一连串的消息提示消散在一部破旧的国产手机中。 …… 本书群号:1031029416传统玄幻无系统,慢热型。 天生神体,却流落凡间,直到天上掉下个小妹妹…… 掌握修炼之道后终成神界天花板。被极东王国学院院长,捡回抚养长大的陈仒。没有能力而被抛弃,成为图书馆里员。 在平凡的度过四年后,一个小偷闯入图书馆把他杀害。本应已死的他,却诡异复活。 在被人一系列的设计后,卷入王国的权力斗争,以及和邻国的冲突之中。 期间失去了最近亲之人,同时卷入了更大的漩涡之中
吾本布衣,提三尺剑取天下 绝品仙医在都市 文明苏醒 三国之铁汉柔情 八荒古卷 寂静噤声 五彩斑斓的守护 镇冥人 荒事 大明:开局被弃,永乐求我称帝 以观天微 什么?吹牛比也能变强? 穿越:我成了唐僧大徒弟 不可公开情报 末法封魔人 古村遗梦 古镇老鹅 末世游戏之魔法师 绝世神丹 齐天云帝 p站头像 纪姿含头像 leo头像 圣堂萌头像 p站头像 光屁屁头像 流浪头像 插裤袋头像 扣扣头像进个人空间的时候右上角边上的圆圈还挂一个横杠是什么意思 通缉犯头像 组头像 q动漫头像 锐雯头像 纪姿含头像 m站头像 圣堂萌头像 流浪头像 扣扣头像进个人空间的时候右上角边上的圆圈还挂一个横杠是什么意思 群头像六班 林动头像 纪姿含头像 网图女生头像 头像手绘 萌猫qq头像 武警头像 锐雯头像 扣扣头像进个人空间的时候右上角边上的圆圈还挂一个横杠是什么意思 头像手绘 群头像六班 扣扣头像进个人空间的时候右上角边上的圆圈还挂一个横杠是什么意思 圣堂萌头像 纪姿含头像 纸币折头像 m站头像 鲁讯头像 圣堂萌头像 纸币折头像 leo头像 锐雯头像 网图女生头像 戚氏头像 通缉犯头像 杜淳头像 流浪头像 萌猫qq头像 纪姿含头像 q动漫头像 戚氏头像 锐雯头像 达摩头像 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 妖玉传 异変 邪神逆天 诡秘之王,我在女寝当宿管 武神魔心 葡京官网 欧博官网 亚星管理平台 葡京官网 皇冠登3出租 组头像 网图女生头像 插裤袋头像 和谐头像 通缉犯头像 戚氏头像 p站头像 锐雯头像 圣堂萌头像 萌猫qq头像 圣堂萌头像 组头像 失败的头像 武警头像 纪姿含头像 网图女生头像 杜淳头像 通缉犯头像 群头像六班 扣扣头像进个人空间的时候右上角边上的圆圈还挂一个横杠是什么意思 p站头像 达摩头像 组头像 p站头像 林动头像 纸币折头像 林动头像 漫画女头像 网图女生头像 圣堂萌头像