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"
福田网站设计机械厂网站建设营销要点郑州网站西安成品网站建设中国网络安全产业联盟机械厂网站建设洛阳市网站建设福州外贸网站建设长沙做营销型网站公司网站建设关键词商城建网站搜索引擎营销的阶段网络安全组成网站要素深圳网络安全信息安全培训西安网站建设成功建设甘肃手机网站建设微营销案例深圳高端电商网站建设者宣传网站有哪些南京中小企业网站制作信息安全有什么认证电商营销公司开商城网站如何建网站武汉网络推广营销公司排名b2b网站建设网络安全怎样辨别网站设计建设 武汉上古时代,天地混乱,一代天骄诞生于此,为承担自己所应承担的责任,我也保护自己想要保护的人而努力奋斗的修炼李信时常被人调侃像王者荣耀中的李信,他同时也幻想着王者大陆。直到他真正的穿越,才领会到,那个世界的模样。我秦飞,这辈子,有刀,有守护之人,足以。探索遗迹,挖掘古墓,返祖才是最强?怎么越活越回去了。科学的力量才是未来的出路。看一只骷髅怎么在混乱的世界占有一席之地,将一众大佬拉下神坛 “穿越绑定说书人系统,一百年后我才知道,我居然就是我话本故事里的那个主角!” “敢情老子一直都在讲自己未来的命运!” 那些说过的情节,全都变成真的了…… 但是如果再给程夏一次机会,他……还会这么选择。 我们的故事,始于禹州的临安茶馆,终于苍茫天地之间。 新作者发书求支持! 有评论必爆更!开局穿越红云,成了洪荒第一大冤种? 让位是不可能让位的,这辈子都不可能做好事了! 等等,你说什么? 我有系统! 只要做好事主动赠予对方灵宝功法,就能随机获得100到10万倍的暴击返还奖励? 对不起,我承认我刚刚大声了点。 我红云高风亮节,就喜欢做好事! “叮!恭喜宿主赠予准提蒲团一个,已触发万倍返还,奖励鸿蒙蒲团一个!” “叮!恭喜宿主赠予帝江九九散魄葫芦,奖励混沌葬天葫芦一个!” “叮!恭喜宿主赠予冥河老祖冥河胎盘,奖励血道胎盘一尊!” …… 在红云的义薄云天之下,整个洪荒势力都懵了。 鲲鹏:“不可能!红云道友高风亮节,怎么可能坑我!” 准提:“红云高义,堪比大道!我西方经此大劫,一定不是红云道友所为!” 三清:“我也不想怀疑红云道友,毕竟他给的实在是太多了啊!”本作品讲的是一个不知名的小人物一步一步成为仙界至尊武道巅峰的故事清末,列强纷纷侵入中国,他们在中国领土上横行霸道,任意划分势力范围,中国民族危机日益加深,百姓生活在水深火热之中。伴随列强入侵的西方传教士打着传播福音的旗号,勾结官府,鱼肉百姓,招收了大量不法教民。在其庇护下,教民为非作歹,欺压良善,激起民众的普遍痛恨,民教冲突不断升级,以“扶清灭洋”为口号的义和团悄然兴起。戊戌政变后,保守派得势,他们迷信义和团刀枪不入的神功,欲借其达到排外的目的,在保守派的纵容和推动下,义和团迅速发展壮大,他们毁铁路、拔电杆、烧教堂、杀教民,逐步由山东直隶进入京师。列强大为恐慌,以保卫使馆和传教士为由,组建八国联军攻陷北京,慈禧太后携皇亲国戚仓皇西逃,留下千年古都被洋人蹂躏……不断的逆回时空,走过、看过、经历过,只为追寻心中的梦。没有什么说的
个人信息安全规范 产品 西安成品网站建设 网站三要 深圳制作网站 为何网站需改版 钦州网站建设 南昌网络营销课程 南通做网站 网络营销怎么引流 长沙做网站建设的 郑州网站 深圳高端电商网站建设者 西安网站建设成功建设 速成网站 在东营怎么建网站 长沙做营销型网站公司 章丘网站建设 2014年信息安全大事件 福州网站建设费用 专线可以做网站 移动营销的缺点 电商营销公司 网站建设的编程技术 国外信息安全博士 上海市网络与信息安全协调小组 如何用网络营销的方法有哪些方法有哪些特点 网站加视频 个人信息安全规范 产品 模板板网站 网络安全基础的关键操作 家如何网站 房地产全程网络营销系统对房产公司的营销推广有什么帮助? 郑州网站 广州网站建设公司 免费婚庆网站模板 武汉网络推广营销公司排名 2016信息安全泄露案例,-1 信息通信网络与信息安全规划 信息通信网络与信息安全规划 为何网站需改版