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"
微博营销是指什么意思网络安全法 中文域名网络安全要从供应链抓起阿里巴巴网络安全总监网站设计下载营销策略价格策略做网络营销需要会什么不同中国山东网站建设北京网站开发制作公司网站域名怎么进行实名认证如何成为网络营销师运营的网站企业网络与信息安全管理组织架构网站定制 天津营销是什么意思怎样写网络营销小结石家庄网站设计最好网络营销公司肇庆做网站网络信息安全工程师认证公司网站的实例桂林做网站网络营销优点缺点免费个人网站制作php网站建设公司网站单页什么是网络病毒营销广东网站设计查流量网站社会化营销案例库app公司网站的实例由于核战争的爆发,大量的能量,摧毁了地表许多的城市但是一直在各种动植物体内沉睡的基因苏醒了。各种各位出现过的神奇动植物都出现。人类的生存空间越来越小……生存在虚无缥缈的世界里,越来越多的域外生物不断入侵,面对着不断覆灭着的星球,由十大圣殿改造出的罪恶人类降世,年仅15岁的他将要成为这课星球的无上禁忌。当代毕业大学生在床上睡觉,窗外天雷滚滚,魂穿到一个充满元素的修真世界,修雷法,对强敌,结好友,泡妹子,揭开一个世界的隐秘,究竟是大梦一场,还是真实存在。 只要是在人的地方就有人在做平凡的事,就有不平凡的故事发生!......一名学生,经历商业洗礼 一个传奇,历练终成奇迹 到底如何,且看商业风云靖元二年,北荒军攻破大梁都城,俘虏皇帝无嫔妃无数,城中烽火狼烟,屠戮成灾,这座屹立千载的中原王朝正在蒙受巨大的耻辱!绝望之际,一身着白袍的将军忽然杀出,身后无数白袍军如同幽灵,收割着北荒军的生命!北荒军大败,退兵百里,大梁王朝免去了灭国之危! 战后,人人都在寻找这位大梁的英雄,皇上更是下旨封其为有史以来第一位异姓王,为他建立寺庙,享大梁子民世代敬仰,可这位白袍将军却如同烟云一般,销声匿迹了。 与此同时,上京城赵家多了一位身受重伤的少爷……刚刚高考完,十分喜欢文学,决定尝试一下凌霄酒仙误饮一壶酒,从此滴酒不可沾。一饮酒他的身体就变成绿色。王母娘娘罚他去人间游历寻找解药。他在探险的过程中,和一位绝美高冷的女神医、一位天真烂漫活泼可爱的姑娘相识。三人结伴而行,一路降妖打怪,逐渐建立起深厚的情谊。凌霄酒仙一路上历经各种磨难,最终是否找到六色神酿?剑士大陆发生巨大变动,斩妖除魔的无名者团队结束了日复一日的安逸生活,再度踏上了拯救各种族民众的旅途,他们会遇到什么?咸鱼如我,废柴似狗。不满生活,安于躺平。 喜欢音乐,穿越到了 麦杰克 的世界 一首曲子,就是我的一段往事。
新建网站 网络安全等级保护2.0 市场营销和关系营销 事件营销的成功要素 网络营销优点缺点 网络和信息安全专业 信息安全保密管理体系 营销型网站的建设 网站域名怎么进行实名认证 微软 网络安全 人才 洋码头 营销活动 社会化营销案例库app 网络信息安全服务能力,-1 php网站建设公司 网络营销怎么做见效快 热点营销 上海交通大学教授谈网络安全 广东网站设计 手机版网站建设开发 网络营销不包括哪些 信息安全 2017 网络设置的网站 事件营销的成功要素 手机网站建设 的作用 石家庄网站制作公司 网站运营者 惠州网站开发公司 信息安全性测试方法 网络安全法 中文域名 中央企业信息安全 公共无线网络安全 网银 营销推广的方式 厦门网站建设的公司 中国的网络安全情况 许可营销工具 长沙网站制作电话 信息安全标准 网络安全网络探测实验 网络安全监测与大数据的 网络营销的最新特点