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"
开发网站的目标信息网络安全普及教育培训教程网络安全监管局网络营销理念包含哪些内容服务类做网络营销能源行业网络信息安全旅游营销推广是指国家网络信息安全局小米成功营销案例分析网络安全技术概述网络安全在公司干什么重庆 手机网站制作电商短信营销网络安全保险怎么买网络安全 乌云2什么是网络安全体系网络信息安全评测机构资质网络营销微观环境的是东软网站建设云南信息安全等级保护网络安全专家服务信息安全等级化保护规范网络安全关注的问题凡客建网站上海网络安全检测公司排名车联网信息安全测试国内全屏网站有哪些物理安全 网络安全网络营销编辑方向不属于网络营销的职能小米的营销手段有营销机构图老夫葛正红是也!双眸分生死,一眼定今生。 ———「魔神」?周云穿越成为镇南王府的世子,本来想安安心心当一个纨绔,上街打算强抢民女,却没想到一个不小心竟然抢走了微服出宫的当朝公主!更没想到的是,皇帝不但没有怪罪,反而将公主赐婚给他!不是吧,我真的不想当驸马爷!什么是江湖?江湖便是人心,人心恶,江湖险。江湖风气云涌,邪恶势力盘根错节蓄势待发,墨家机关术再现江湖,是正是邪?活人炼僵尸,野兽军团汹涌来袭。八臂观音走下神坛,海底神功刀枪不如倭寇大军更要如何抵挡?一把来历不明的纯钧名剑,一处富可敌国的稀世宝藏,一场身不由己的家国恩怨。更有儿女情长,爱恨纠葛,他该如何面对?”世界在重合!“常年游于被世界所抛弃的土地的汪洋惊道。在几乎无人涉足的巨大森林里竟有一个婴儿躺在地上,如树木的果实一般,不仅如此,在这森林之间,还有一座与之格格不入的村庄。诡异的事件不断的印证着汪洋的话。本平平无奇,却又历经无数灾变与机缘,只因大道天选。力战仙魔,背后却仍是危机,他,能否护住这世界?天外有天,人外有人,当他立于灵武大陆最尖端时,才晓得,更大的世界在这片湛蓝天空之外……凡人无非就是饿了吃饭,渴了喝水,走路靠腿,说话靠嘴……,百年而逝,皆顺天命。 修行一途却是争天命,夺造化,乱阴阳……每走一步都是逆天之路。每进一步都会被天道打上劫轮印记。 落霞村孤儿,叶轻语在机缘巧合下承得太虚道统。 从此势不可挡,征战诸天万域。 跨过万古轮回,越过宇宙洪荒,掠过天地玄黄,战至地老天荒,只为守着心中的温柔乡。然而在时间长河的尽头回过头来,一切早已逝去,只剩下了自己。 风都一个出现了英雄的城市,在假面骑士W打败了最后一位掺杂体后风都又回归了平静。但事情并没有结束。十年后发现的一个遗迹打破了这一静。那是来自黑暗世界的力量,将人们吞噬的力量,将世界笼罩的力量,这一切会由谁来打破呢?是英雄回归?还是光明乍现?等待人们的是臣服黑暗还是奇迹的发生?多元宇宙空间,每一个行为都会生成一个不同结局的剧本,如果改写人生,岂不是个体力活..... 科学前沿最新虚拟产品——时空流,横空出世....... 真实:举世战争,幕后帷幕... 虚拟:人生模拟,潜能培养... 一切的一切....居然是为了.....适应.....武器??? 天空划过一道光,一起眺望时空流下的幻雨...神明要找接班人?全人类中的佼佼者展开无尽的纷争,只为成神!齐玉一拳一个小朋友,笑傲世界之巅! 嗯?就是你欺负我女朋友的?西内! 道德绑架我?对不起,我没有道德!西内! 敢占我便宜?还讹钱!西内! 老爸?西……噗啊!出现了,jojo中奇怪的出血量!
太原网站制作 潮州网络营销外包 网络安全在公司干什么 公司信息安全工作建议和意见,-1 怎么给网站添加站点统计 公司网站定制 小数据 信息安全 ppt 网络安全 数据安全 快速网络营销软件 江门网站设计 企业营销网站建设公司 微信网络营销案例 临清做网站 工信部 信息安全要求 网营销策划方案电商 整合营销一站式服务 信息技术网络安全 深圳整合网络营销推广 poc 网络安全 做个网站要多少钱 珠海网站制作品牌策划 企业信息安全资质认证,-1 深圳官网网站建设 信息安全等级保护实验室 网络管控和信息安全,-1 网站建设的售后 营销外包公司 临清做网站 网络安全验证是什么 信息安全案例演示 杭州网站制作公司 信息安全企业排名,-1 动态网站制作 网站策划书 深圳企业网站制作报价 澳洲网络安全挑战赛 中软网络安全考试 工控 信息安全 深圳网络营销公司排行榜 信息网络安全普及教育培训教程