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"
开封做网站广东省信息安全认证中心大华 网络安全顾问营销系统个人怎么做病毒营销方案定制网站制作广州小红书内容营销家居企业网站建设新闻合肥网站建设title 网络安全开封做网站网络安全传输青岛免费建网站企业b2c网络营销战略网站建设趋势2017沈阳微网站塘厦网络营销外包在网站后台上传的图片为什么传到网站上后会变形应该怎么修改青岛免费建网站信息安全评测机构 资质信息安全等级保护 定级huang色网站中国网络信息安全联盟深圳信息安全免费网站申请网络安全传输省网络安全厅大型网站开发海珠营销型网站制作深圳创想营销文化传媒有限公司【我叫许夜,因为心脏病突发,我死了,享年十八岁。】 【我穿越了。】 【我翻开《全球通史》,却发现这世界只有一百年的历史。】 【我走到镜子前,镜子里出现了一双手,掐住了我的脖子,大概是我的帅气让他心生嫉妒?】 【我躺在床上睡觉,天花板上浮现出一张人脸,她看着我,死死地看着我,我缓缓脱下了裤子,她移开了眼睛。】 【我已经沉思了五分钟,这个世界太不正常了。】 这是一个极其危险的废土世界,到处充斥着扭曲、污染、畸变、疯狂……还有,许夜!从石朝太祖开国以后,历经百年,大陆风云变幻,北方的狼已露出了他的爪牙。年少的英雄们又将如何搅动风云,各种谋算藏于心中,天下终将落入谁人手?曾几何时,一人便为一军,一手诡异的刀法神乎其神,率百余将士,可敌千军万马!战火纷飞,一柄长刀可刺破苍穹,一面旗帜压境攻城!留下的传说无人不知无人不晓,当时的洛烨,是笼罩整个战场的黑暗。   他失去了理智,手握长刀在人群中穿梭,红光四起,等回过神来时,血,已经染红了大地。   一年前...地球青年李易生而平凡,但自信心爆棚的他总觉得自己并不普通。一次意外导致记忆觉醒,但似乎并不完整。 是仙帝重生亦或者黑手下棋? 潜龙界域封印即将破碎,星河大世界强者为尊。不想为人奴唯有自救,即日起传法天下全民修仙。 而我,会为这颗星球争取一百年的时间。 “无聊了小半辈子,人生终于精彩了起来。既然如此,我可不想留遗憾!” 所有人都当我是一条狗,一个连老婆孩子都守不住的废物,直到有一天,我拔出了刀……玄界有一个没有人知道的秘密,只要找到七颗神树,便可达到传说的境界。 云陌州一个小家族的年轻一辈林秦突然被叫去后山拜师。 这个少年一路上会遇到多么精彩的世界。 医理入武,自创玄虚魔体。 善恶一体,衍生七情六欲。 心火入刀,焚灭三毒四劫。 燹魔一叹,刀斩尘世百态。 地狱开局!穿越到异世界![奇幻魔法] 因为一场意外,幸福、快乐已经全都离我远去,现在的我,还能够追回吗? 【我的心底,满怀希望,同时也充斥着恐惧。】 是等待着命运的安排,选择逃避?还是无路可退? 也许,我已经找不回从前那种快乐的感觉了,因为我变了……变的陌生了,经历过这么多事,给我带来太多的仇恨与痛苦,或许我早已变成自己心里最痛恨的那种人吧…… 在这个黑暗的世界,连光明都是有罪!研究生毕业孙淼回家种田,他家的猫咪会 说话,乌龟会爬树,鹦鹉会唱歌,带你见识一个从小山村走向巅峰的人生。少年穿越异界,竟拥有无敌背景,还拥有系统
问答营销的排名 作品网站 网络信息安全培训班 社交网络信息安全事件 公司网站域名是什么 qq免费建网站 国外优秀网站设计欣赏 中国信息安全认证中心 台州建网站 定制网站制作广州 信息安全风险管理培训内容 作品网站 营销代理 重庆网站真实案例 太原网站优化 大理网站建设 网站建设趋势2017 卫龙 整合营销 高端广告公司网站建设 开展网络安全认证检测 网络安全 调查报告 重庆南川网站制作公司推荐 关于加强党政部门云计算服务网络安全管理的意见 微信营销的效果 怎么学网络整合营销 中国网络安全企业50强 中国信息安全认证中心 网络安全问题的文章 我国网络安全 学校网站欣赏中文 塘厦网络营销外包 微信移动网站建设 中小企业网站建设服务 营销型网站是什么样的 广东省信息安全认证中心 2016网络信息安全重大案例分析 校园网络安全分析 成都整合网络营销公司 问答营销的排名 网络安全 新闻