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"
太原做网站什么公司需要网路营销北京网络安全需求房产网站建设网络安全 展览武汉市大型的网站制作公司电子商务网站建设资讯比较好的信息安全网站国外网站模板网络信息安全ppt网络安全600哈尔滨手机网站制作网站维护机构北京网站建设第一品牌网络营销案例产品如何给网站添加音乐东城东莞网站建设服务是软营销谈网络安全资讯网站排版长沙电子商务网站建设外贸建网站珠海网站制作品牌策划面膜的产品营销模式信息安全创业,-1网络安全研究热点苏州制作企业网站公司网络安全相关电视剧中国计算机网络与信息安全学术会议高校网络安全评估报告网络安全 展览未婚妻的背叛、父亲的离奇死亡、母亲的神秘失踪! 背负着沉重包袱的沈夜白,毅然走向那十死九生的屠邪之路。 在这弱肉强食,渐渐失去秩序的修炼世界,他闯荡坠天神域、脚踏万千邪族、在天地战场纵横杀戮…… 当他驻足停歇、放眼天地,才发现自己早已站在了这个世界的绝顶之巅!这是神魔意志与人类精神的碰撞,这是斗气与魔法充斥的世界,在牧师的祈祷与召唤师的吟唱中,天才少年龙行云带领渺小的人类,决战诸天神魔。他是骑士?他是魔法师?他是学霸?他是冒险者?他是英勇的领主?他是伟大的统帅?他是无敌的战神?不他是人类的英雄。在整个大陆上,除了一些传闻,还有一名非常神秘且强大的战士,是这片大陆最强悍的战士之一,他死后由他而已继续保护传送阵法年轻的边防警察军校成长史,爆笑的军校生活,无畏的禁毒,反恐等打击犯罪的战斗,生动反应了首战用我,用我必胜的豪迈誓言。故事发生1890年的一个与世隔绝的小镇上。最近一年,镇上不断有人离奇地死亡,只留下干枯的尸体。名为圣职猎人的组织一直在调查此事,意图找到血族泛滥的源头。人类与吸血鬼的战争与纠葛正拉开帷幕...师父说他道心天成,生而近道,是天生的仙人;师兄说要收他做小弟,主角光环罩着他;小师妹让他小心神女龙女魔女妖女圣女,出门在外记得保护好自己;亘古不散的残魂说他是洪荒的幽灵,摊上大事了,别想安生…… 懒鬼师父且不说,洛清尘打定主意是要离大师兄远点的,以免出意外,毕竟大师兄的机缘总是很废队友。至于心怀不轨的小师妹,最应该提防的难道不是她吗? 本欲世外清修做个仙人,奈何大道锁途,万古的残梦未散,终是不得闲。洛清尘入世种因,出世讨债,斩道斩道,剑斩的既是凡尘枷锁,却也是自己的道。 “道友,交易否?童叟无欺,等价交换!”2002年的某一天,陈雨后突然接到了一个任务,来自华夏官方的任务。万万没想到,走路也可以修练,躺着也能成为大佬。 人说:要做个有梦想的咸鱼,本想翻身,一不小心咸鱼粘锅。 哎呀!完犊子了…… 是命运的不公,还是英雄的凯歌! 两世轮回,繁华落尽! 待回首,灯火阑珊处却不见她。 传说中的手掌乾坤,脚踏星辰,御剑飞行的世界真的出现。 各种大佬,集聚一堂。 而苏洵,却身处漩涡之中。 谁是执棋之人,而谁又是棋子?国之将亡,必有乱世妖孽,国之将亡,必有济世真人......脑子有一扇门,可以自由穿越异世界。 本来以为可以当个小倒爷,在平平无奇的古代世界享受财主生活,结果这个世界有佛,有妖,有儒,有道,有武者。   有人能力拔千钧,有人能飞天遁地。 千年人参要不要? 绝世神功要不要? 长生不老丹姚不远? 当姚不远带着高武世界的东西回来,美女要倒贴他,豪门世界,古武门派,争相而来,跪求宝贝。 姚不远心道,我能说这些东西都是垃圾吗?
设计网站酷 免费申请个人网站 大数据信息安全安全 高档网站设计 长沙手机网站设计 珠海专业网站制作公司 乌海网站建设 永久免费建站网站 信息网络安全普及教育培训教程 青岛手机网站制作 太原做网站 东城东莞网站建设 珠海专业网站制作公司 网站网页设计公司 青岛建网站公司 网络营销论文报告 网站主色调简介怎么说 网络营销的发展 网站网页设计公司 国家网络安全管理局上海做网站公司 信息安全服务风险评估资质证书 永久免费建站网站 如何自己建网站 洛阳 网站建设 更新网站内容有什么用 制作网站的要素 推荐营销 营销操作 嘉兴的网站设计公司有哪些 网站建设明细报价表 太原市做网站 武汉网站设计 福田网站设计 谈网络安全 营销操作 交互式网站 铜仁网站建设 网站方案策划书 东城东莞网站建设 做网站合肥