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"
信息安全博士,-1闵行网站建设瑞星网络安全预警什么是营销型网站网络营销团队运营知名 信息安全实验室工控系统信息安全威胁唐山做网站公司公司网站定制信息安全2网站报价书大连营销公司电子信息安全网络营销信息传递原则潮州seo营销网络营销什么深圳网站建设公司自助建手机网站免费无锡谁会建商务网站大连营销公司南昌个人做网站企业员工信息安全培训内容产品型网站网络营销的成本结构京东商城的营销环境国家信息安全等级保护制度 拨号访问控制认识网络营销调查的基本方法有哪些方面信息安全培训资料网络安全威胁什么意思免费网站域名申请蓝紫相间的霓虹灯里,超凡文明与机械文明共存。 这个世界,有古老门派立道统,有隐世奇门藏与世,有财阀统领一座星球,诸强林立。 然,一天夜晚,大陆震荡,超凡与科技爆发战斗,而后沦为联邦禁忌。 五年后,一名为范歌的少年,开启了他的传奇之路...... 范歌:“虚伪的光明即将散尽,自由的黑暗必将到来!”【无女主】、【剧情轻松】、【无系统】、【元素丰富】。 沈湛穿越到了蓝图集团开发的【剑魂】融合世界,成了圣罗娜王国的二王子霍德·泰恩。 距离全球降临时间还有10天。 昼夜颠离,他发现自己视线变得惊人的好用。 赤瞳银发的龙语者,又飒又美骑在巨龙的龙背上。 西境繁荣宏伟的圣城凛冬之傲,正在举行年度盛大的王国庆典。 以及,凭借一己之力,就敢迎击教会仲裁武士,纵使千军也难以招架的魔女超凡者。 最主要的是,沈湛成了“剑魂”世界,最先降临的领主之一。 是选择继续种田,还是对外发动战争,扩张领土?2052年,负责设计、运行智慧城市的人工智能睿系统突然推出了一款VR游戏“乾坤”,该游戏完全由人工智能独立设计开发,游戏的口号为“规则强者定”。游戏推出不久后,人们惊奇地发现,进入游戏后无法退出。而此时,被囚禁在游戏中的玩家,已经超过八百万。多批次由科学家、游戏高手、特种部队组成的救援队试图进入游戏找到解决方法,但也都有去无回。在大家一筹莫展的时候,一名百岁老人自愿进入游戏,游戏中是怎样的世界?他会成功吗?在一片大陆之上,国家繁多,相互征伐,国家更迭极快,更多武林之士,更愿意依靠盟派的庇护由此,练武成仙的热潮兴起,致使人间霍乱频发。在天虞中有一人,出身不凡,却喜好游历各地……原始大陆乃是一个妖兽统治的世界,强大的凤凰和祖龙各自皆是一方守护强者。 少年十七本是神境强者之子却惨遭血脉剥夺,失去一切的他成为一名废人,直到她的出现将彻底改变他的一生。玄天大陆,武道为尊!强者可以脚踏虚空遨游太虚,举手之间可破碎山河。 废物少年叶宁意外觉醒前世大帝记忆,获得天地至宝蕴神莲!从此握手青锋,败天下无数天骄! 前世的仇,今世的恨,他叶宁一一会报。公元2068年的科学家林峰,刚研制出一种逆天的转基因药丸,还没来得及服用,就被一道闪电劈中,灵魂穿越到滕青大陆,走上了修炼的道路,一路修行,不断突破,终于从一方宇宙中超脱出来,成为一方无敌届主。。。。。浩荡天地,四界交汇;万千生灵,人才荟萃。 她,是他人生中最珍贵的至宝,是神给予他冰冷的一生中唯一的救赎。 他,是她人生中最英勇的骑士,是照亮她孤寂而迷茫人生的璀璨曙光。 少年自卑微之地涅槃重生,与少女相遇;相互依靠,再度闯向那精彩绝伦的纷纭世界,重新开启属于自己的全新传奇。 手握究极之力,脚踏日月星辰;持掌万道乾坤,世间以我为尊。人类的末世降临,于乱世之中形成三雄割据!丧尸帝国,兽人部落,人类文明,摇摇欲坠的是星辰还是明灭飘忽的未来……秦煜魂穿大唐,激活了个说书系统,却没想到开局任务就说【长生诀】。 秦煜:在大唐说长生诀?系统你怕不是嫌我死的太慢!你咋不叫我去讲玄武门之变? 系统:那就讲玄武门之变,要么现在死! 秦煜:我也不是怕死,就是爱讲玄武门之变! 李二:听个书,结果听到揭秘玄武门之变!这厮当真是不怕死呀
瑞星网络安全预警 网络安全测试与评估报告 网络营销发展分析报告 符合国家信息安全产品 给 小企业 建设网站 建网站怎么上线 网站类型分类 微信营销经典案例 太原网站改版 网络营销系统功能 工作+信息安全东欧 网络安全敏感国家 工控系统信息安全威胁 网络营销发展分析报告 中国网络安全基地 做一个网站需要多少钱不属于营销战略4p的 网页制作淘宝网站建设 电子 东莞网站建设 网络营销系统功能 武昌手机网站 关于加强网络安全有何意义 营销互动 首页营销网 网络安全能力认证考试 上海柯力士信息安全技术有限公司 信息安全的建议和意见 最新企业网站系统 qq营销 网络安全测试与评估报告 太原网站改版 网络安全产品 工作+信息安全东欧 网络安全敏感国家 营销的含义 网站的营销与推广方案 网络安全包含哪5个 川大信息安全专业 网络整合营销的例子 什么是营销型网站 网络安全方案建议 网站有几类 网络安全人员录用