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"
扬中网站建设网络营销策划经理公共无线网络安全 网银深圳网络安全支队微网站需网络营销站点域名采用"企业网站域名/产品名或营销页面名"的形式属于手机行业的网络营销网络营销未来趋势深圳网络营销微网站需汽车网络营销济南 信息安全做网站销售长沙专业网站建设团队网站建设哪家公司好网站建设网站怎么写网络营销的总结edm营销平台的费用全屏网站北大 信息安全实验平台四平做网站信息安全等级评估证书信息安全等级保护测评师,-1如何免费建立网站北邮 信息安全 国家线熟人关系营销在无线网络中 哪种网络一般采用基础构架模式 信息技术与信息安全网络信息安全公司的售后网络营销策划书的撰写苏州做网站推广的公司哪家好天生至尊,为人族斩妖除魔!护人族万垂不朽!江宇泽前世遭兄弟的反水,亲朋的质疑,爱人的背叛,不幸陨落。烟消道散之时,竟发现在这大千世界之中,源灵大陆只不过是一粒尘埃。万年后得以重生,挖掘新的力量,开创新的规则,以源灵大陆为基础,向未知探索!“当时太天真了,以为跟个大哥就有口饭吃,结果……”十三机众人擦擦泪,说:“现在肉都吃撑了,再吃就吃不下去了……大哥别打肉了,再打真吃不完了……什么?晚上还要做肉,老大求你了放我们出去打架吧!” “你们这算啥?”治安署的人一把鼻涕一把泪的说:“以为是两个破小孩拉起个组织要搞事儿,我们都准备好搞了加工资,你这谁想得到我们的治安还更好了……等一下,各位,我先不哭了,好像过了今天我们就是同一个老大了。” 这谁想得到?搞事情的组织还要当头。 这么说,工资的话…… “宣誓了,宣誓了。” 东南三区,并非长久安定;天下之稳,皆因大守门人。 “守门人 李思仁!” “守门人 张耀文!” “守门人 十三机机所有人。” “守门人 春秋战国集团。” …… “还有我还有我,这次我可赶上了。” “张家众人,李达夜和其徒张燚,参上!” 天地正气在,英雄傲世来。一刀尽江河,一手握日月,共人间悲欢,历九世劫波。缘来行到水穷处,缘尽坐看云起时。世间毁誉,世人冷眼,能奈我何?道行乾坤,德载天下!萧瑟秋风,斗转星易,换了人间! 试看萧易觉醒蜕变,傲世苍穹,笑看风云!李道远意外穿越小说世界,竟成为小说前期反派富二代他爹。 此时,他的废柴儿子已经招惹到了小说的天命主角,马上就要将整个家族带进沟里。 李道远想要从根源上改变命运已经来不及。 就在李道远无语问苍天,准备放弃治疗时,【至尊反派系统】激活了。 只要打击主角,抢夺主角的机缘,都会获得相应的反派点与气运值。 于是乎,一位用自己儿子开始钓鱼执法的慈父正式上线。 “我的儿子只有我能打,别人打我儿子,那我就废了他!”元宇宙经典游戏出马传奇,沈庸一人独开四号,各有所长 另有三位妹妹辅助,四人共同纵横驰骋,称霸游戏!重生信仰时代,随身空间,修炼,无敌,低调,商娱,农牧,宗门,家族,大中原社会主义。作品讲述的是一个走投无路的人向死而生的过程。由于种种离奇的机缘与遭遇,被迫踏上自己从未想象过的奇妙旅程,最终他的命运会是如何?是生?是死?...烈烈风中,米罗慷慨陈述。也许有人会笑我愚蠢、鲁莽,但我要告诉大家,人类慢慢千年的历史中,就是那些旁人眼里的愤怒匹夫,不管兵甲漫天、屠刀如林,也死守尊严和底线,才有了冰山大陆的盛世百年。我选择做那个莽夫,因为我不愿在死后成为埋葬在黄土之下的冢中枯骨,放弃换来的苟活一命,买不走苍天大地上男儿的万丈豪情,我就要用今天的一战,在后世危难时刻放出照耀青史的一寸豪光。华韵在苏寒蝉入学那年担任了她的新生训练员,华韵认她为自己的妹妹,在这一年,一次实验的失误使得这座本就不安全的学校更加诡异,一些莫名其妙的东西也随之而来。为了自己与妹妹的安全,华韵更加努力地投身于战斗。这场十三四岁少年们本不应该背负的战斗。异世界,魔王,勇者这些本应存在幻想世界的事物却降临在了我一个平凡的美术实习生的身上。 异世界,现实?两者交融,一股神秘力量将我卷入其中,而我身边只有绘画及工具而已,以“笔"为剑开始了我的异界之旅,又有什么在等待着我,神秘而又未知.....
在无线网络中 哪种网络一般采用基础构架模式 信息技术与信息安全 中国网络安全信息小组 衡水专业网站建设公司 信息安全笔试,-1 手机行业的网络营销 有关风水的网站建设栏目 网站数据包括哪些内容 网络营销直播 有关风水的网站建设栏目 深圳 企业网站建设 玩具外贸网站模板 网络营销整体运营方案 网络安全前言 信息安全服务资质认证公司 全屏网站 长沙哪里做网站好 有关风水的网站建设栏目 旅游网络营销方案设计 孝感网站建设 苏州做网站推广的公司哪家好 建功能网站 提升关键基础设施网络安全 网络安全防护的工作原则 建网站费用 网站建设网站 保定php网站制作 网站备案不通过怎么解决 食品类b2c网络营销 可口可乐网络营销计划 网站的版式 旅游网站策划书 简述网络安全威胁的几种基本形式 有关风水的网站建设栏目 网站制作案例 北邮 信息安全 国家线 东莞网站制作 模板网站与 定制网站的 对比 网站备案不通过怎么解决 建功能网站 网络营销整体运营方案