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"
中国信息安全联盟章程网络安全与防范技术甘肃网站制作公司有哪些cc标准 信息安全物流网站建设案例群体营销网络安全 最高法信息安全的人员管理包括浅谈网络营销国家网络安全中心发布营销群发器网络信息安全证书淘宝中的信息安全国外网站模板建设营销型网站不足之处武汉市大型的网站制作公司网站套餐丽江网站建设设计公司网站案例镇江网站建设价格装修网站建设工业控制系统信息安全 标准苏州装修公司网站建设微信广告营销成功案例合肥网站制作需深圳网站营销公司合肥网站制作需成都旅游网站建设北大 信息安全 实验室信息安全最佳实践群体营销虚拟又真实的世界,脱离了现实之后又该何去何从? 神秘未知的虚拟世界,与蓝星新兴元宇宙又会碰撞出怎样的火花?五代十国,乱世风云,后周显德年间,佛劫降世,佛门高僧入世消劫,引发了诸多江湖儿女的家国情仇,为天下太平演绎岀荡气回肠的传奇故事……   寂寂夜空孤月寒,十七年离别茫茫。一念执真,南风绿依,盛颜银发证衷肠。   最是有情“负情蛊”,三年生离道心初。剑啸弦荡,逍遥慕云,一念倾情一生终。   啸引苍波,漫卷山河,心志难酬朱颜改。孤情骄阳,若玉独镜,小楼空照人何在?   日月无改江山裂,金戈铁马雁泣血。渊鱼更龙,世宗执戟,风起云涌荡山岳……   一缕清风,人间太平吹拂……《古剑》小说中的孟飞,在与仇敌决战之时,神秘穿越到公元三十世纪的D球,在这个修真与科技并存的时代,孟飞又该何去何从呢?而这一切又是怎样?于棋盘之上博弈,于命运之中抗争......弈棋老人,欢迎您来观棋!我的誓言就是:绝不背叛国家!绝不背叛战友! (第一次写文,跑题了,活生生写成了玄幻战争??)十年武当之旅,到底是为什么? 父母又去了哪里? 那深邃的黑暗,通向哪里? 立在天地之间的那块石碑,是守护,还是入侵?与地球极为相像的平行世界—地星,各个国公司均爆发了生化危机。 无药可解的致命病毒席卷全球,末日降临,“感染者”横行无忌, 杨小海,父母双亡,一无所长,唯一可夸赞之处,便是资深宅男一枚。 赖床的一个早上,梦中巨响彻底改变了命运的轨迹。 别人对致命感染避之唯恐不及,他却混的如鱼得水; 出门打水捡个怪人后,他的世界彻底乱了……这描写的是一个奇异的异界大陆,每个人都会拥有一个叫做灵印的东西,这种灵印一旦拥有可以成为这个大陆上最高贵的职业,主角烈龙皓机缘巧合下成为了圣职师,并踏上了他的征途。天道之下的人,在追求着天道。只是,天道又是什么?人在追求什么?I am god! 无知凡人们,献上你们的膝盖吧! 那一天,得知世界真实的辰桓定下一个小目标,成为这世间第一个神! 于是乎,受命于天的他带着上天的馈赠,开始了他收集打工人的历程。 教室上课上的好好地,一枪击案竟在学校发生?! 老师同学全杀,学校血流成河;顾曜煜火纹案觉醒,校园主角团立下誓言:定扭转时空,拯救世界! APRP组织的阴谋,恶魔的血眼悄然睁开。 世界的未来,是什么呢......
2015信息安全事件 成都旅游网站建设 网络信息安全证书 单页面网站外贸网站建设公司策划 网络安全 身份认证 有实力的网络营销公司 传统营销方式的手段 湖南品牌网站建设 网络安全 最高法 网络营销传播案例分析 网络营销是 建设营销型网站不足之处 甘肃网站制作公司有哪些 2014年信息安全 与信息安全管理相关的工作有 微网站首页 中国信息安全专家 网站方案策划书 京东怎么营销的 我国网络安全情况汇报 网络营销对全球影响 验证码 网络安全 网络安全防护系统 中国信息安全专家 诚信信息安全服务资质咨询公司,-1 广州整合营销公司名 网络安全 两会 软件产品营销 石家庄公司网站建设 网络信息安全证书 传播营销 淘宝中的信息安全 工业控制系统信息安全 标准 家电营销策划 合肥 做网站的 哈尔滨手机网站制作 武汉专业网站建设推广建网站 微营销培训方案 网站与维护 东营有哪些制作网站