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"
如何做推广营销成都网站设计公司网络安全交流会全国信息网络安全协...工控网络安全烟草方案2009网络安全事件长春网站优化网络安全监测预警平台营销型视频电气营销型网站方案微博营销内容怎么写网络整合营销套餐广告网络口碑营销运营中型网站课程网站建设关于网络营销策略最新网上营销方法个人网站建设制作信息安全的威胁深圳网站设计平台哪里的搜索整合营销网站制作字体工控网络安全烟草方案全国信息网络安全协会北京网站制作排名湖南长沙网站制作互联网推广营销学院个人信息安全的例子网络安全设置包括哪些?我国服装企业网络品牌的营销策略分析——基于凡客诚品品牌案例分析高考结束了,摆烂但又不想接受这样的自己,阴差阳错回到两年前一段未知星球讯号的发现,彻底改变了苏飞的命运,二十五岁的苏飞被带回八年之前,面对重复的人生,苏飞赫然发现自己的体内竟然存在一个外星智能生物……这一次,他不再平凡!道路漫漫,走着走着,走进一家神秘小店 仓促之间,毫无准备 突如其来的一个游戏人间的系统 选中如此单纯的我 但是我怎么可能会相信它的鬼话,可是它的任务实在是太无耻了 书中暗藏隐藏剧情:系统究竟有着怎么样的过去经历,到底是什么样的玄机暗藏在我周围 ------------------------------------------- 请大家持续期待阅读老书新更,欢迎大家评论区留言 ------------------------------------------- 反转反转还是tmd的反转,无耻是真tmd无耻啊 懦弱、胆小、霸凌是我经常遇见的,为了改变我努力习武,日复一日年复一年,坚持与毅力共存知行合一。做一件事要认认真真的去完成,你要做到一往无前,不畏艰险打破一切困难! 且看怂包少年偶得系统开启武学之路拳震八方,成就无双威名! 捞尸人的禁忌有很多,可总有人不相信,说是歪门邪道。 这不,带着校花总裁下一次水,捞一次尸。 她竟非逼着我和她生猴子!穿越后的钟文被一个小萝莉捡回了只有女弟子的飘花宫; 这个世界最顶尖的功法、灵技、知识统统来自上古; 于是,研究看不懂的上古文字,成了时代的潮流、身份地位的象征; 偶然的一次机会,翻开一本由上古神文写成的书; 他惊讶地发现...... 既然上天给了我再一次重来的机会! 这一世我会让世间所有人知道!帝师陈宇! …我叫陈宇,这世间无敌的存在让我毁灭这一切后才发现,原来是我误会了这一切,我该如何挽回这一切。一场全球病毒使人类文明的存在步入了尾声,生存还是毁灭,一个巨大的阴谋交易如同黑夜笼罩,斗争始终不曾停止,人类终究能否迎来黑暗后的黎明......"三阴绝脉"者,史书所载;凡患此症者非但终生不能修武,并且几乎无一人能侥幸活过十三岁。命运关上所有的幸运之门,却开了一扇窗,令其在绝境中峰回路转,当其踏着尸山血海攀上巅峰之时,骇然发现一个惊天之秘。暮然回首,惊觉自己脚下的这片世界幌若恒河之沙粒,渺若微尘。何去何从……
网络营销的缺点有哪些 2013网络安全威胁报告 首例网络安全法 信息安全的威胁 网络安全威胁中断 山西网站制作公司 桂林做手机网站 网络安全技术公众号 电气营销型网站方案 互联网推广营销学院 网站制作公司合肥广东网络公司营销排名 网站制作 杭州公司 杭州互联网营销 培训机构 网络安全技术吧 网络安全基础关键技术操作 学网络安全技术到 中华人民共和国计算机信息安全保护条例 营销门户 企业博客营销的定位 外卖营销方式 苏州网站建设logo 第十届信息安全 建网站 重庆微营销公司哪家好 网络信息安全主管部门,-1 网站建设与应用 东阳网站建设 6p营销要素 第十届信息安全 贵阳营销型_网站建设 网络安全监测预警平台 营销推广服务 网址制作网站 信息安全计划 无限动力网站 微信营销的特点有 微博营销内容怎么写 创网站 互联网推广营销学院 信息安全峰会2017