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"
网络挺营销基本概念网络安全应急基础平台免费注册网站空间信息安全工程 第二版 中文版下载南京制作企业网站文化网站建设使用网络安全的公司网络安全监控设备单位网络安全搭建建设公司网站方案开发网站需要什么技术开商城网站英文网站推广互助网站制作公司搜索引擎的营销策略网视觉营销给 小企业 建设网站网络安全评测机构苏州网站推广深圳网站建设公司企业网络营销方案做门的网站建设开商城网站衡水网站建设网站建设案例怎么样河北网站设计制作四川网站设计网络安全专项治理报告青岛网站网站有几类网站建设案例怎么样古墓 龙潭 金山 仙界 云海 浪沙 神宫 魔鬼 神仙 正邪 善恶 热血 诡局 悲情朝歌夜弦,莫过一本好看的书,莫过一首美曲罢了宇宙诞生,自然诞生?人为诞生?混沌至上,虚空之遗,这个世界真的是无规律运转吗?谁曾想过更高的维度空间,有最高吗?若无那么便叫吾觞次元!现代反赌专家穿越到大明,睁眼便是生死局,满街皆是花样赌! ?骰宝、牌九、叶子戏,走狗、斗鸡、蛐蛐乐! 偷天换日、飞云探龙、?海底捞月、天外飞仙? ?林萧笑了:过家家的把戏,也好班门弄斧?要说起出老千这档子事,我会的远比你们梦寐以求的多得多! 【万界交易系统安装成功】 【系统等级:1级】 【升级条件:完成五次系统交易】 【交易次数:1次】 【仓库:无】 …… 叶峰获得了万界交易系统,从此纵横商场,玩转都市。 美女?豪车?信手拈来。 有钱不能淫? 那我有钱有啥用?红衣,黑影,传承……五年前,主宰生死号称阎王的江毅突然了无音讯。 没有人知道江毅结婚了。 漂泊了半辈子,以为终于遇到了可以避风的港湾的江毅,隐居在小小江城,暗中扶持落魄的叶家和自己心中的白月光叶嫣然,让叶嫣然年纪轻轻便事业有成,居于人上。 本以为平静的日子会继续下去,谁知,来自叶家一纸离婚协议书,将江毅无情的抛弃。 而就在江毅签下离婚协议之后,他那五年不曾响起的电话响了起来。 而世界,也因为这个电话的响起而震动。下一场雨,救活干涸的心灵,停一会电,去看遥远的星星,点一支蜡烛,照亮远方的路,写一笔字,记录时间的落幕。神说:太初有道,道即是神! 魔曰:太初有道,魔于道先! 有魔,先于道而生!这不仅仅是某人的自夸,更牵扯到他证道的隐秘。 九州之变,魔星降世,灵石下凡,洪荒秘闻…… 道之所存,魔之所在!且看天魔周游各方世界,追逐魔之本源,成就无上道果! 一颗天外陨石突然降落地球,地球迎来了最终篇章。 地球盖上了一层抓不透的红色纱布,这颗陨石到底是什么? 饥饿,伤痛,恐惧,死亡,恐惧萦绕在人们头顶。 审判,是末日最终的工具。
网络安全应急基础平台 校园信息安全平台 网页制作淘宝网站建设 把网络安全作为头等大事 信息安全等级保护 测评,-1 开发网站需要什么技术 信息安全的人员安全,-1 服务营销的利弊 佛山微网站建设 如何快速提高网站排名 网络安全应急基础平台 网络营销什么 东华大学 信息安全 网站建设整合营销 网络安全法条款导读 卫星网络安全 汕头建网站 it行业和网络营销 网络安全专题知识宣传 全球信息安全认证 网络安全运维面试题 单位网络安全搭建 经营模式和营销模式 上海营销型网站建设 个人微信营销方案 门户网站建设 中国国家信息安全 信息安全不涉及的领域是 福州做网站建设服务商 邮箱营销软件哪个好 我国信息安全标准体系有 合肥做网站域名的公司 国内最好的信息安全公司 个人网站设计模板 使用网络安全的公司 网络安全协议是为保护网络和信息 普洱网站建设 2016年 315 信息安全 网络安全运维面试题 网络安全运营外包