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"
网络营销专业知识信息安全项目计划超链接营销博客营销的弊端网络营销托管服务信息安全的要素网络营销的定义及分类天津网站开发手机网络营销存在问题外贸做网站我莫名的来了了一片大陆,这里可以有龙国的东风,也可以有西方的魔法。可以有激情的战斗,也可以有惨破的逃亡。还有…… 全书以第一人称的视角,以叙事的手法讲述故事。剑未妥,江湖早,纵使不懂,也不默,少年啊,不归呀,吾辈皆是英雄! 鸟惊忽现白马,飘飘锦衣落梨花,少年呀,归来呀,千年谁复重生?一剑动京华!世界上存在一种叫做灵的东西,它自有生命一来便存在在世界上。灵和生命的关系就像牙膏和牙刷一样,独立而又不可分开,有世界就会有生命,有生命就会有灵。虽然灵靠生物身上的灵气为生,但一般情况下还是会和人和平相处的。 某校老师吴东元作为神秘组织的主力军之一,为了救下自己的学生,却已经将命运的齿轮推动…穿越异界,没有系统,没有外挂,这还让人怎么活!是躲于阴沟暗角苟且偷生还是绝境拼搏逆天改命?且看雇佣兵王为穿越异界的精彩人生。他本是跨国企业的接班人,不料刚下飞机就遭遇绑架、车祸。 她本是一个普通到不能再普通的小职员、怎么也想不到有天会阴差阳错的、遇到他、把积蓄全拿出来给他治病看头,一心想着让他回顾记忆。怎会想到会喜欢上他、爱上他、再一次逛商场中他的家人发现他。可夏天只认苏夏。曲家老太太不承认苏夏做孙媳妇儿、未来曲式集团只能是季家女儿!还用夏天的健康威胁苏夏。 没办法只能骗夏天自己偷偷离开、强忍着眼泪离开自己儿子、在末世中,所谓的生存,终归会是个笑话?两个时空世界的我,一个大神却生活灰暗,一个平凡却生活美满,都在一个身体内,注定了我与我的纷争,因为只能只有一个我!印象里,我好像有一个弟弟。我很小的时候父亲带着他消失了,那个时候我七岁,到现在怎么也想不起弟弟的样子,我甚至会怀疑,这个弟弟,会不会是我闲来无事现象出来的玩伴 嗯……作者新人,喜欢写一点奇奇怪怪的东西,可能还没有逻辑,就……咱们文明评论 如果除去天生阴阳眼的话,我的前半生应该是普通的不能再普通了,但自从那天之后,我墨色的生活被染上了色彩。你怎么什么都懂? 我看着像懂吗? 万能公式,果然是万能的 风水相师,山精鬼怪 我有系统,欲证长生道
外贸网站设计 上海网络安全检测公司排名 免费的网站申请 网络营销产品策略种类 微信营销怎么引流 博客营销的弊端 微信营销怎么引流 微营销培训方案 信息安全的要素 网络安全学习路线 网络营销的网站分类 张店制作网站 博客营销的弊端 深圳h5网站制作 建网站代理商 营销型网站建设 邢台做网站公司 网络安全关注的问题 伪静态网站 信息安全项目计划 信息安全风险评估实施教程 当受到网络安全投诉时 厦门做网站培训 互联网营销推广 网络安全错误错误代码 信息安全项目计划 网络营销托管服务 天津网站开发 网络安全周 开展网络安全 实验报告 承德网站制作 网络安全运维面试题 网络推广营销 信息安全服务资质安全工程类 新闻产业中病毒式营销 网站重要性 黑白网络安全 上海网站改版 蜂鸣营销 网站建设小技巧 网络安全史上著名事件 全网营销模式 2001年网络营销事件 网络营销的政策 信息安全的要素 绵阳做手机网站 网络营销推广方法案例分析 2001年网络营销事件 黑白网络安全 潜艇的信息安全 网络营销好学吗? 个人建网站 企业网络营销后期总结 国家网络安全主题 营销服务专家 谈网络安全 网络安全的应用 营销培训讲课 网站建设服务费标准 微信营销怎么引流 电商与微营销 工作室营销 天津网站开发 镇江网站建设价格 为何要网络安全审计 网站的营销方法有哪些 上海网站开发制作 单位网络安全宣传培训情况 精致的网站 上网认证管理系统 信息安全 应该双网站 开心网的营销手段 广东网络安全对抗赛 网站被黑了 南京公司网站 建网站需要什么 安徽网站建设 电商与微营销 网络安全协调局人员 网络安全对抗实训及操作仿真平台 网站的营销方法有哪些 网络营销托管服务 网站被黑了 魔兽网络安全 合肥需要做网站的公司 中国信息安全公司排名 网站迁移 大连网站建设公司 企业信息安全建议 购物网站建设 企业品牌宣传型网站 合肥需要做网站的公司 制作网站电话 网站转化率 国家网络安全主题 常州企业网站建设价格 微信营销公司广州 网络营销的定义及分类 免费建站网站大全 2017 会议精神 国家信息安全 上海网站改版 信息安全网站有哪些内容 张店制作网站 营销策划去哪里学 互联网营销推广 有什么网络安全的网站 第一级信息安全等级 网站优化外包 农业网站建设 怎么用html建网站 公安部 网络安全试点 广东网络安全对抗赛 响应式网站栅格 上海品质网站建设 魔兽网络安全 网络与信息安全事件 网络安全如何创业 蜂鸣营销 银川制作网站 昆明高端网站建设 企业间网络营销案例 网络安全学习路线 网络推广营销 网络安全如何创业 单位网络安全宣传培训情况 张店制作网站 中国信息安全公司排名 信息安全识别 深圳h5网站制作 网站取消备案 国防科技大学信息安全 营销型网站建设 信息安全标委会 全网营销模式 网络安全关注的问题 应该双网站 哪种网络营销最赚钱 信息安全项目计划 重庆网络营销客户 石油石化信息安全 当受到网络安全投诉时 网络安全从业者证书 信息安全认证(cispcissp),-1 互联网营销推广 网站取消备案 邢台做网站公司