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"
云平台 信息安全信息安全等级保晋城网站建设深圳网络安全信息安全培训网络安全资讯APP有哪些网络营销网站南宁网站忧化网站建设营销的技巧企业手机网站建设策划信息安全 一级学科 2014建网站主机供应链 信息安全的定义,-1网络信息安全基础成都市网络安全现状网络营销新媒体测试题信息安全服务资质公安部信息安全查询怎么加入网络营销公司专业的营销网站建设公司排名成都市网络安全现状网站优化课程信息安全中常见的攻击,-1企业博客营销的劣势怎样学营销深圳网站设计工作室电商营销公司做什么网络信息安全服务包括哪些内容,-1信息安全世界学校排名江阴做网站cpc营销网站怎么加背景音乐众神欺骗信徒,人类簇拥成王。 混沌的时代,究竟何为正确?何为错误? 君若离去,我必生死相随,来生再相依相爱,这是一个悲惨的故事,主角上官云飞幼小父母双亡,家族毁灭。在叔叔的照看一直一路崛起,你以为他会一路高歌,却没有想到天有不测风云,主角遭受挚爱背叛,从此一撅不振…… 一枚丹药如何拯救世界?周九天一个赘婿之子,如何逆风而行?本书讲述的是晨宇上初中时的校园经历,包括张鹏的恐吓,有李小杰的陪伴等等天地之间灵气复苏人们纷纷觉醒了超凡力量,但是萧阳直到初中毕业之前都没有觉醒力量。直到他考上了高中他才发现了他真正的能力——考试,通过的考试越多就会变得越强。 ……林耀被老头子暗中定下婚事,本想下山退婚,但当看见未婚妻本人时,他态度发生一百八十度转变:“我的媳妇,竟然是冰山女神……”我,陈益,带着系统穿越电影世界,。。。。位卑不敢忘族,匹夫一怒,尚且血溅五步,小人物也有大情怀,天启大陆种族共存,大小势力无数,一轮墨绿色翡翠圆盘,让林风从微末中崛起。我本是剑道门派一名不起眼的弟子,一次机缘巧合下得到了一根笛子,那一天一切都变了……永恒圣堂门开,狂雷洗涤异世之魂。拥有神识海的骑士学徒,死不瞑目的元素魔法师。一直被坑的丁馗集两家血脉传承精髓,走上空前绝后的法武双修之路。积功开辟根据地,以一隅谋全国,靠的是两世战争经验。人魔最终之战时,毅然舍去历尽千辛万苦所取得的一切。神圣,神圣,原来神之上是圣!
央视 路由器暗埋网络安全地雷 系统营销 客户信息安全管理体系,-1 女孩子学网络营销 武汉网站建设公司 重庆专业网站建设费用 网络信息安全基础 工业互联网 网络安全测试 如何建自己的个人网站 电商营销公司做什么 网络安全 研究方法 网络信息安全监管 e mail营销主题 网站建设前准备 系统营销 传统网络安全防护有哪些产品互联网营销调研总结 信息安全逆向和渗透 深圳网站建设服务公司 信息安全逆向和渗透 社会工程学和网络安全 网络安全零基础书籍推荐 网络安全仿真靶场 2017企业网络营销 网站建设 长春 南宁网站忧化 网站营销活动策划方案深圳 企业网站建设 网络营销技术基础语言 网络营销的评价指标 网络安全的 工业互联网 网络安全测试 病毒营销教程 911事件 信息安全 公司倒闭 网络信息安全杂志 深圳做网站(官网) 网络安全 研究方法 营销外包贴吧软文发布 安徽网站定制 鄂州网站建设 深圳网站建设服务公司 信息安全 顶级会议