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"
商城网站模板帮人做网站内容营销与传统营销的区别在哪里南通网站制作深圳 信息安全营销小组长沙网站制作公司有免费的营销软件吗网络营销学文稿网络广告营销网站的风格无锡网站制作排名近年来信息安全大事件企业网站首页布局尺寸网站建设规划网络安全宣传信通公司网络安全狗招聘顺德网站建设信息分析企业网站和搜索引擎两者在传递网络营销信息方面有何不同网站设计)网络安全漏洞的定义专业的网络营销公司哪家好信息安全运维实用技术QQ转发营销活动网络安全法 6月1日风险评估管理软件 信息安全 比较鸟哥的linux私房菜 认识网络安全网络安全技术与防范西北信息安全测评中心建网站后如何维护信息安全共享有说人生命运已经注定,任凭怎样都无法跳脱这种牢笼。是的,似乎深有体会,仿佛周围的一切早就构成了一张网,只等人生,便牢牢笼住……也像极了老天在圈养研究他的生物,就眼睁睁看着,想要知道你的各种反应…… 如果命运不能改变,如果想要改变命运,无论如何,都要精神起来,和命运、和自己、和老天斗一斗这一生! 混迹于政治场上长大的皇子,立誓要做一位明君。奈何寒来暑往物换星移,登上龙椅执掌天下时,才知皇帝的不易。酒池肉林夜夜笙歌,使其明君之路步履维艰,最终成为了要美人不要江山的快活皇帝。杀猪匠不杀五指之猪,守村人不守有庙之村,风水师不点血龙宝地,接生婆的手必须用公鸡血清洗,世间360行,行行有行规明朝末年吏治败坏,山西、陕西、河南等地重大自然灾害不断,民大饥不能活,关外女真崛起,多次入关劫掠。 大明境内狼烟四起,明失其鹿,天下共擒之,一个医生穿越到明末成为庶子,庶子也风流,张景开始他精彩的擒鹿之旅。 简介无力,还是看正文吧 邓晨一次意外碰见了星外文明的基地,在生死间获得两件神器,并获得看衍生出的系统。 被盯上了的蓝星,神秘的蜘蛛图案和科技之门,究竟还有什么在窥视着蓝星呢 秦正穿越唐朝,竟因为一只鸟上古时期,穷奇一族蒙冤困于羽山。万年之后,羽山穷奇族内乱,穷奇王将主角陈怀风送往八荒。 天光照海,星月从之;肝胆照心,妖灵契之;死生相从,以卫以征。契成!——妖灵契约可御兽; 天有白溪,云海可舒;地生白溪,江河不枯,青丘白溪有一枪,可擎天、可贯海!——妖族也热血; 日月昭昭,神血殇殇;天地之间,八荒之内,凡我族类,死守羽山,莫敢再犯!——族群万年使命如何抉择? 神族见死不救,人族背信弃义,八荒存亡之际,且看我陈怀风如何讨还公道!世纪战乱,人为变更,年年战争最终玄武帝国统一了这片大陆,并命名为玄武大陆。秦一凡出生在黔玄城一个最穷,最偏僻的小村庄里,后来得知自己家族是道教三大顶尖门派伞旗一脉的传人,自己更是天赋异禀来是千年难遇的天纵奇才,为了逆天改命,复兴宗门,从此便踏上修真之路...天道俯视众生,凝聚世间万法打造九重天阙,与之共鸣者可获天赐命魂,踏上修行登天之路。 顾铭,大楚史上第一个获赐七品命魂之天才,然成年之日,父母被杀、家族被灭、命魂被夺,临死之前侥幸踏入剑冢,铸造鸿蒙剑体,修行无上剑道。两年之后,顾铭离开剑冢重返世间,踏上剑道至尊之路,一剑可斩仇敌、可破九天、可镇诸天万域。当现代世界一个文科普信男穿越到了三国,会与这个世界擦出怎样的火花,他能否创造奇迹?
企业级网站欣赏 lte网络安全 网络营销学文稿 网站承建 长沙网站制作公司 西安网站制作 企业信息安全保护的重要性 深圳 企业网站建设 网站空间免费 网站的内容 鸟哥的linux私房菜 认识网络安全 临沂网站设计 互联网营销平台 南阳手机网站建设 无锡网站制作排名 网站的内容 网络安全动画 网络安全基础ppt 淘宝网店的营销方法有哪些内容 网络营销科技公司 河北seo优化_网络建设营销_网站推广服务 - 河北邢台seo 签名档营销 信息安全培训师,-1 信息技术与信息安全 域名分为 临沂网站设计 网络工程师和网络营销 怎么制作网站 网站制作公司哪家好 网络营销成功事件 网站用途 网站打开速度慢 网络安全的信息 网络安全基础ppt 营销式建站什么意思 三只松鼠营销推广经验 营销推广平台 临沂网站设计 政府网络安全工作方案 银行员工如何防范信息安全 网站建设报价单