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响应式网站建设信息如何测试网络安全性系统信息安全等级保护网盘建网站手机网站建设动态信息安全策略编制指南营销型网站窗口客服营销型网站设计工资中国信息安全测评中心招聘中国信息安全测评中心 主管部门响应式网站建设信息信息安全理论知识竞赛网络营销的基础理论发生网络安全事件后银川网站建设网络营销功能表宝安网站设计陕西 网络安全和信息化领导小组网站营销网络营销难吗网络安全评价标准东莞网络营销培训网络安全面临的威胁广州做企业网站找哪家公司好专业做网站企业东南大学信息安全竞赛合作建网站深圳 网站设计金融营销的网站设计案例咨询手机网站建设平台星陨大陆,邪族尽出,星途虽苦,吾道不孤,异族相助,寂灭不输!叶辰生于诸神黄昏时代,神格散落大地,人人皆可成为神! 本是天之骄子的叶辰,却因自身神界内的信徒皆是无法修炼的人类,从而惨遭退学…… 幸好,他还觉醒了超级科技系统! 于是,当所有人都在钻研各种魔法,信奉个人之勇的时候。 他的信徒却凭借科技的飞速发展,创造了机械飞升的道路。 二向箔、光速飞船、反物质导弹、基因进化、人工智能、计算机破解一切魔法公式……系统傍身,杀一人,活一天; “以死神的名义,你必须死!” “以死神的名义,毁灭他们!” 死神:“呃...你不要坏我名声!”【灵异、悬疑、惊悚、探险、宠物、系统、游戏、搞笑】 废弃的别墅,消失的山村,黑暗的血楼…… 人头蜘蛛,红衣厉鬼,浑身是手的怪物…… 在这个深夜的恐怖世界里,王尊稳如老狗,遇人先问娘,杀鬼必扬灰,万事只求一个安稳! 别人还恐惧在诡异怪谈中时,王尊在惊悚游戏世界里杀疯了。李贤穿越了,来到一个叫大秦皇朝的世界。 别人穿越要么成为皇帝,要么成为富家子,可我却成了个太监! 还好拥有金手指,能够让我变回真正的男人。 本想就这样苟在皇宫内逍遥快活,可世事难料,皇位更迭灾祸蔓延到了整个大秦。 奸臣当道、外敌入侵。 眼看着自己的快乐生活被打破,李贤只好站出来。 诛邪、斩妖、扫黑、除恶... 誓死守护大秦,保护后宫三千佳丽。爷爷是传说中的英雄, 但在一次比武中被人踢成瘸子。 爸爸是现实中的废柴, 却成功让曾经爱过的女子变成了自己的丈母娘,迎娶她女儿~~~ 还走了狗屎运,赢得比武当了船长。 我,更是放荡不羁爱自由,就是个扶不起的阿斗, 却靠着背祖传的拳谱功法,一路鬼使神差,当了国王~~~失业的萧杨在一次意外中穿越到了危机四伏漫威世界,同时觉醒了每个穿越者必备的金手指——系统。嗯?复仇者里多了一个金刚狼?这是那个宇宙跑来捣乱的?这里没有X战警!在经历无数次困难后,萧杨成功成为众多复仇者最信赖的伙伴,结果,他接到一通电话,里面的人告诉他的真实身份是……九头射卧底!What fuck? 意外穿越,王腾穿越到了龙珠超世界,而且还到达了全王宫殿! 全王对王腾特别赏识,直接让他成为神界的监察官! 激活签到系统,开局奖励超级赛亚人五……… “叮,恭喜宿主在全王宫殿签到,奖励自在极意功!” …… 比鲁斯:“什么?监察官大人驾到了,赶紧出迎!” 芭朵斯:“王腾大人好帅啊,真希望能够跟着大人,成为他的贴身天使……” “你说,这个世界上,真的有魔鬼吗?” “当然,你不就是?” “杀人偿命,天经地义啊。”一辰,你们家的床大不大呀,介不介意小女子们在此借宿一宿呢 你穿上衣服的样子真好看呢,你也是不穿更好看! 美女事业两不误,他全都,要要要!!!
Email营销 2014国家网络安全周 本地的唐山网站建设 信息安全策略编制指南 网络安全播报 深圳 网站设计 营销案例及分析 北京高端网站定制公司 网络信息安全讲座报告 网络营销难吗 点击asp网站里的外链却自动在外链前面增加自己的域名了? 珠海企业网站制作费用 广州做企业网站找哪家公司好 网络管控和信息安全,-1 网盘建网站 多种成都网站建设 包头市计算机公共网络安全协会 g3营销系统官网 包头市计算机公共网络安全协会 服装页面设计的网站 微博网络营销团队 服装页面设计的网站 营销采集软件 大学生与网络信息安全 网络安全技术知识 网络安全态势感知你所采取的网络安全操作或者你所知道的操作建议(不少5个建议) 定制网站制作广州 陕西网络安全监察大队软件营销网 昆明网站搜索优化 网站建设趋势2017 移动网络营销平台 正规的常州网站推广 病毒营销是什么意思 互联网营销教育培训 web编程网络安全 亚太网络安全协会 网络营销影响因素 网络信息安全法主体 新营销方式 网站建设趋势2017