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"
ids 网络安全防护手段网站建站网络营销基础报告西安市信息安全测评中心国外网站空间免费网站空间申请成都信息安全协会客服桂林做手机网站南通网站怎么推广一键建网站电气营销型网站方案数据挖掘 网络安全信息安全的发展阶段微信营销成功网络安全 实施目标网站设计公司深圳计算机信息安全图表衡水网站制作一键建网站工业控制系统信息安全指南贸易公司自建免费网站绵阳的网站建设公司网络营销中4C的特点信息安全监管要求网站代维护开发网站需要哪些技术网络信息安全泄露,-1中国计算机网络安全大会信息安全制度体系家电怎么营销方案服务器网络安全设备方案人类纪元会因一个平凡者的穿越而改变吗?未来和现在又有什么联系?他的来去是被什么力量所操控?从原始一步一步开始奋斗,能不能最终解开谜题?一代帝师,遭遇自己十位爱徒的背叛,复苏后彻底迈上魔道之路…… 刀劈帝宫镇四方,掌灭星辰踏踏苍穹,诸天万道群雄起,看尽英豪我为尊! 古武世家的杨冬冬在一次意外中穿越到了浑元大陆,化名林郁随身而来的只有自己曾经对古武的理解与记忆。 这个世界百花齐放,万古长青。多姿多彩的文化底蕴,各种各样的武学,多元的修炼体系,美丽而烦杂的神话传说,这是一个比地球还要长久的存在,这里是没有科技的冷兵器时代。 看林郁如何已足够的方式,在这片土地展现出古武的风采。 (其中很多东西为作者杜撰,并非实际,仅以当做小说内容,没有任何对中国传承的贬低和歪曲之意,任何这方面的诽谤,均不会承认。)感谢大家对作者的关照,对作品的喜欢,希望各位看官多多鼓励。1227年,成吉思汗走了,主人翁来了。 练功,种田,开科技 傲视群雄扫四夷 想打就打,不服就干 弱鸡南宋,有我无敌一剑封神,一剑开天!宋帝都临安府爱国人士:吴俊振,与用时光机穿越过来的现代大学生:马维,两人一起被龙卷风漩涡黑洞带着,穿越到了明崇祯十六年公元1643年兴都留守司显陵卫境内,在机缘巧合之下他们俩主动应征入伍参军,从此开启一段帮助大明帝国收复失地的旅程,本文群号7999681101985年华城,刚刚结束了长达数十年的混乱,华城的百姓过着安居乐业的生活,每当黑夜降临,华城的夜晚灯火通明,华城的黑暗世界也暗流涌动,仿佛在向光明宣战……侠,以武犯禁。 魔,以欲乱世。 当一个力量与技巧都达到极致的存在出现在这个世界上时是怎样的体验? 这是一个杀戮机器逐渐成长为人的故事....亦木墟历练归来时见到家族覆灭,发誓欲要血刃仇敌,报其家恨。 闯秘境,夺至宝,守边疆,战万族。 沧海一粟,修行千秋,蝼蚁尚且贪命,诸天生灵皆在争渡。 一颗黑球可炸山镇海,一杆长枪可斩万千神明。 是非对错唯有强者定义,弱者只配臣服。 武道九重,上为天地境。 当末法时代结束,修行元气重归上古。 整个修士界,皆因亦木墟的一颗轰天雷,即将暴走...人生是条无尽路,谁说短短百年不够精彩,谁说刹那的闪耀不算是闪耀。 苍茫大地,万族林立,这中间,从来不缺什么天才,不缺什么天仙之姿的美女,更不缺什么扭转乾坤的关键一子。 自落后地区逆袭的剧本已经上演了不知多少次,过去、现在、未来,类似的逆袭剧本还在不停上演,就算世界已经厌倦,这样的剧本也还是会被书写出来!
谷安网络安全就业班 信息安全服务 全球 营销软文广告 苹果支付网络安全 国际前瞻信息安全会议 信息安全 化 社会大学生网络安全总体数据分析 网络营销中4C的特点 数据挖掘 网络安全 沈阳做网站的公司排名 wifi 网络安全 一键建网站 中国计算机网络安全大会 网站建设com 信息安全 化 国际前瞻信息安全会议 成都信息安全协会客服 网络安全 实施目标 网络营销产品 营销学专家 中国计算机网络安全大会 重庆南岸营销型网站建设公司推荐 信息安全竞赛报名流程 信息安全专业相关工作的通知 监控网络安全方案设计 沈阳做网站的公司排名 成都网络安全法 免费网站空间申请 创建微网站 网络营销中4C的特点 湖南企业全网营销 网络空间信息安全专业,-1 展示用网站 营销模式 新疆网站制作 创建网站公司 徐州 ids 网络安全防护手段 中国网络安全专家 wifi 网络安全 网站变灰色