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"
网络安全500强中国公司营销合作四大门户网站网站 开发 价格响应式网站建设市场tools网络安全网络安全威胁的分析信息安全峰会成功举办,-1互联网金融网站建设网站做好后明确保障网络安全的基本要求百度推广的知识营销网络安全攻防题库网站建设导航栏设计顺德网站优化公司成都营销博客广州响应式网站咨询网站搭建吧河北省网络安全电信网络安全密匙忘记网络营销网络市场调研南阳营销策划 优帮云搜索引擎营销的做一个网站的费用构成互联网营销 国内 国外网络营销实例分析ppt营销网站手机站网络营销推广渠道包括哪些方面网络营销战略特点是什么意思南阳营销策划 优帮云穿越平行世界,开局就被女星污蔑,沦为史上最强渣男。 结果开启搞事系统。 从系统开启的那一刻,就注定严谨是娱乐圈的一股泥石流。 面对媒体: “我说那不关我的事情你信吗?!” “真的,她说要蹭我的流量,所以……主动找我,我真是无辜的啊!” “你们不相信?我审美是在线的,就她那样的……我也瞧不上啊!” 凭借着自己的才华,他让网友又爱又恨。 甚至还被亲切的称之为——娱乐圈质检员!亦木墟历练归来时见到家族覆灭,发誓欲要血刃仇敌,报其家恨。 闯秘境,夺至宝,守边疆,战万族。 沧海一粟,修行千秋,蝼蚁尚且贪命,诸天生灵皆在争渡。 一颗黑球可炸山镇海,一杆长枪可斩万千神明。 是非对错唯有强者定义,弱者只配臣服。 武道九重,上为天地境。 当末法时代结束,修行元气重归上古。 整个修士界,皆因亦木墟的一颗轰天雷,即将暴走...《次元大陆:中星》原创小说,五年级小学生创建,每周日更新(可能会拖) 500年前,天动异象,祸从天降,生灵涂炭。 300年前,起义开始,外来之人,必将惨败。 300年后,外来的残渣仍然威胁着次元大陆,甚至还把魔爪伸向了别的世界。九位天选之子将带领这个世界上的所有生灵消灭残渣,为世界,宇宙带来和平。菩提--盘古之心所化,与本元为友,广招门徒,合道为祖异世大陆,强者为尊。 少年陆泽惨遭背叛,却意外获得无上神功,从此龙游苍穹,鹰翱九霄。 杀圣子,灭天骄,夺造化,逆天改命,强势崛起! 一步一登天! 一路披荆斩棘,一剑破万法! 高歌猛进,无所不克,一直走到巅峰。柳一,吃的用的都是自认为最干净,包括女人。 末世纪元,丧尸危机爆发,大地生灵涂炭,人类逐渐走向灭亡……… 而白羽泽却带着死前记忆重回危机爆发前一个月。 “迷茫之中,该何去何从?” 规划、防守、武器订购、受难者基地崛起…… 危机面前,是生,还是死? 历史给予我新生,我必将改写历史! 在此,请见证,新时代的到来………… 高中生白晓意外得到超能力,在一次体育课上显现出来,但是能力远不竟是如此,在越来越多的超能力被发现的同时,他也慢慢寻找超能力的源头,这一切的一切也变得奇妙而又令人震惊我叫荆少雨,荆轲的荆,年少的少,下雨的雨,出生于南方的一个偏僻的小山村里,故事发生在我十八岁的时候,父母在我出生那年离奇死亡。入狱五年,再回都市。 叶昭只得感叹世事无常。 前脚遭受前女友背叛,后脚江氏大小姐主动追求。 大小姐的脾气不好怎么办?爷乐意,宠着! 兄弟们喜欢搞事情怎么办?爷惯得,忍着! 左手悬壶救世,右手银针杀人,左右逢源,天下无双!
济南网站优化 初级信息安全保障系统电商营销平台 济南网站优化 苏州营销网站建设公司 南阳营销策划 优帮云 网站建设三站合一 开封全网营销 2010年信息安全事件 网安大队互联网信息安全检查 网络安全攻防题库 移动社交营销 网页制作 公司网站想弄个网站 杭州网络营销外包 百度推广的知识营销 响应式网站建设市场 网络安全管理办公室 济南网站优化 tools网络安全 淘宝服务营销策略 网安大队互联网信息安全检查 信息安全监理业务资质,-1 长沙网站推广公司 email营销方案案例 申请个人网站 按照网络安全等级大庆网站建设 网络安全500强中国公司 企业建网站 上海高端网站制作公司 电商行业网络安全 初级信息安全保障系统电商营销平台 酷网站欣赏 杭州网络营销外包 政府网络安全中心 南昌哪里有网站建设 信息安全基本属性 建英语网站 网络安全实训报告 一般公司为网络安全设置怎样的防火墙设计方案 网络安全威胁报告2016 营销合作