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网络营销策划国家网络信息安全网微营销百度百科中国信息安全网组长内部列表email营销网络安全 高端培训桂林做手机网站信息安全产品与方案山东网站建设网络营销文案事例北京市信息安全产业wifi网络安全问题网络安全协议 原理 答案网络营销工程师教材互联网 和 网络营销cisp培训ppt(中国信息安全产品测评认证中心提供)宁夏制作网站公司网络安全几年一检网络安全的博士网络安全协议包括 .网站建设排版规定广州微信营销企业网络安全 pptg20峰会网络安全美橙互联旗下网站网络安全合作cii 网络安全 internet途牛网网络营销策略怎样建立自己的网站连着9年失业9次的白露, 意外获得了自主创业大礼包。 从没做过饭的白露,因此支起了烧烤摊。 有笑。有泪。 让我们左手辣椒,右手孜然, 烤出一一个烟花人间。 本杂记是以心情日记书写的,元素分为古诗绝句、律诗,英文诗,现代诗歌,词曲,宋词以及散文。十五篇一轮回,变化多端,内容丰富。伯伯叛变,一夜血洗淮安。你身负血海深仇,却隐藏真实身份,在他的脚下做一位平平无奇的闲官。国家局势动荡,内忧外患,六国分裂,且看男主如河实现统一六国,逐鹿中原的雄霸之业。陈白凌在公司加班长达14个小时后终于在凌晨两点半一头栽倒,醒来后发现自己在一个洞穴里坐了三千年,让上一世社畜的他根本不能接受,推开洞穴的石头走到街上一番打听终于明白自己穿越了而且发现原主的发小变成女帝?一场车祸,一枚神秘戒指,带着夏天穿越诸天。 我曾和张三丰坐而论道,与小龙女烹雪煮茶;曾掠夺斗帝异火,也曾迎战诸天神佛! 诸天万界,都藏于一枚小小的戒指中。 首席长官探地府,储君王子访东洲。 修堂建舍传道业,唯有梁柱最难求。 自古帝王有神助,从来名将须抛头。 滚滚河水断恩义,凛凛雄威鬼神愁…… 特战精英深入敌后昆捣毁了敌人的雷达站,在敌人的导弹轰击下昏迷被俘,从此开启了为被俘士兵雪耻,捍卫华厦掘起的征程。我也不知道我死了多少年了,组长说我是孟婆汤喝多了。 我在人间当鬼差,专门负责按照生死薄的时间和死法去收割人头。 阴间的KPI太重了,我想再死一死陈寻怎么也想不到,自己机缘巧合参加的一次相亲经历,竟然就此翻转了他的整个人生。这一本是全册的短篇小说,就随便写写,有灵感就写,作者比较浪
网络安全的博士 国内网络安全 途牛网网络营销策略 大连制作网站网站设计的论坛 网络安全协议 原理 答案 蓝海国际版网站建设系统 国内网络安全 怎样建立自己的网站 智慧城市信息安全 如何做好微信群营销方案 网络营销策略论文 丰都县网站 建设手机网站费用 网站页面大小 德国网站建设 网站推广费用 北京搜索引擎营销策划 微信营销的总结 APP营销特点 中国信息安全测评中心山西测评中心 官方网站怎么建设的 西安网站建设案例 西安非营销类公司 武汉做网站公司 大兴做网站 c2c电子商务网站 网络安全技术实训报告 中孚网络安全隔离卡 东营设计网站建设 口碑营销策略案例 信息安全案例库 行业 营销 全国网络信息安全大会 2014 公安部网络安全应急 西安网站建设案例 信息安全顾问专业能力 途牛网的营销模式 威胁网络安全的主要因素 高端的佛山网站建设 网站首页制作