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"
网站建设流程图小米手机网络营销推广公益网站建设昆明网络营销车载网络安全印度 网络安全企业 收购北京建设网站图片系统信息安全信息安全等级保护检查工具箱西安信息安全培训网站的广度北京市网站公司深圳信息安全评测中心网络营销实训课程新建网站电脑 手机网络安全网络安全管理规范体系台州公司网站建设校园网信息安全问答营销案例是什么香港 网络安全网站营销陕西信息安全管理中心地址福建信息安全就业广州网络安全会议 2017网络公司网站互联网个人信息安全信息安全违规响应式网站工具网络营销 技术中国网络信息安全战争 焚城遗子的创世之路。张辉在九一八爆发后去往南京报告黄埔军校,在黄埔军校成绩全优被报送德国军事学院学习三年回国后担任中央军一一八师第十三团二营营长率领部队参加淞沪会战南京保卫战,在南京保卫战失守后,沿途寻找部队不幸遇到日军激烈战斗,弹尽粮绝随后被八路军游击队所救因为伤势原因送到野战医院救治伤好后参加八路军去往延安抗大学习结束去往抗日前线率领部队与日军展开激战,袭击日军机场 炸毁兵站 摧毁日军毒气弹研究基地 与国军严团长配合获取日军作战计划,最后奉命率领部队阻击日军,抗日胜利再次前往抗大学习担任教员,毕业后前往东北战场与国民党展开激战,随后跟着入关作战,张辉被党中央调往西南地区进行剿匪工作,解放战争胜利后 ,张辉奉命前往解放军军事学院担任特种作战教员 年终76岁一个兔子开始的故事 夏建独身混都市,历尽苦难,终成正果。摇身一变,他成了名符其实的大老板……【传统玄幻+无系统+剑修+无后宫+不无脑】 百年后,一位手拿残剑的少年走进了人们的视野之中,他笑看风云志,一剑破万象,开合之间竟然有当年那位的影子……后金铁骑灭宋,历史拐弯进入刘氏文朝。文昭帝五十二年,内忧外患,左相专权当道,宗室萧墙。腐朽将倾,灭国亡种露端倪。 懦弱书呆子杨继业在荆蛮楚地意外转性,文武并行,带领蛮族军一路前行。破山贼、剿倭寇、东控海贸、北撼蒙匈;内权肃奸、强兵兴武,皇权进村,国富民安,成就权相伟业,华夏一族登临世界之巅。 架空历史+商战+官场+战争+崛起未世来临,个人应该如何拯救?人在险恶环境中怎样生存,人类在宇宙矛盾中摸索前行。科技海洋,无穷无尽,艾丝丽和宋小彤从一开始起,从来没想过会有这么奇异的缘份和致命的结局。在2060年,世界进入量子时代,科技高度发达,各种先进的便民的技术层出不穷,虫洞处于研究阶段,危机随处可见,主角是一位在学校大学生主攻科研天文,爱好广泛涉。上一世命运坎坷被他人所制,沦为替死鬼,机缘之下借体重生,这一世要为自己而活,追寻武道巅峰,成就一代王者 陈阳穿越到了高武世界,获得了一个能查看人生剧本的系统! 这人生剧本,能预知人未来,查看命格,甚至连对方的最近机缘都一目了然! “绝世机遇!?不好意思,我先收为敬!” 三流的主角等机缘。 二流的主角找机缘! 而陈阳:机缘在哪,我就在哪!
佛山+网站建设 大同做网站 太原建网站的公司 北京高端网站设计外包公司 网络安全扫描能够 网络信息安全风险解决方案 网络信息安全主题 网站创建公司网站 网站制作及排名优化 公益网站建设 2014年中国计算机网络安全年会 聊城网站建设费用 潼南网站建设 姜堰网网站 关于华为网络安全整治 周汉华 网络安全 问答营销案例是什么 创建网站的步骤 信息安全等级保护检查工具箱 唐山网站搭建 网站建设访问人群 罗湖网站制作 创新的网站建站 北京市网站公司 南京政府网站建设 福州优化营销 精品课程网站设计 深圳网站制作公司机构 信息安全 国产化 打印机 点击asp网站里的外链却自动在外链前面增加自己的域名了? 信息安全设备包括 主流网络安全产品 周汉华 网络安全 花呗营销 在线营销工具 印度 网络安全企业 收购 手机网站模板开发 哈工大信息安全854复试 信息安全管理的根本方法 肇庆做网站