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"
外语网站建设企业网络安全建议网站建设公司是什么想弄个网站网络市场的营销策略分析报告网络营销学学什么股票网站建设网络安全攻击的分类武汉建网站网站盈利模式上海网站制作信息安全教学实验室营销意义营销推广中的seo服务好的网络整合营销响应式网站建设市场提供网站建设搭建邮件营销的优设计网站会员营销的案例网络安全 解决方案苏州网站优化网络安全等级保护政策中国信息安全测评便宜的网站设计中国网络安全管理中心北京新营销信息安全学python淮北网站制作全球网络信息安全案例让网站降权一个普通人当上皇帝的道路……千年前一场大战力挽狂澜以一战百最后道毁身陨,神魂转世投胎,借逐渐寻回前世回忆踏上漫漫武道之路问鼎武道的至高峰.杀戮世界降临,全球百亿人随机被投放到未知角落。 赵东发现,这是他看过的一本小说世界? 随后悲催发现,自己是小说里的反派。 “我确实想有钱,可这是杀戮世界,再多钱也没用啊!” 不过,他很快发现,知道剧情的滋味真不错。 “我反手就是开局掠夺机缘。” 于是乎,小说主角怒吼:这本来是我的机缘啊! 女主角:“赵东大神对我真好,又厉害,我以前误会他了,他是真心喜欢我的。” 众求生者:“赵东大神求抱大腿。” 于是乎,别人在杀戮世界挣扎求生,赵东却发现这里的小日子也不错。 【架空历史】 两年后,被军中战友称为“狂神屠灭者”传奇战神的特战兵王江晓如约归来,面对人事皆非的境况,该如何取舍,面对一步步浮出水面的暗黑真相,又该如何抉择! 世间的真爱该如何诠释,人间的正义又该如何解读。 孤儿江晓与独女简雯在一个城市读书,相恋四年,彼此深爱,毕业时江晓为追寻自己儿时便已植根内心深处的梦想做了一个让简雯无法理解也很难接受的决定,选择入伍。入伍临行前,两人定下两年之约。 两年后,成为特战兵王的江晓为两年之约离开了那片让他挥洒过无数血和汉承载着作为军人荣耀的火热军营。 回来后,却发现外面的世界已经不是自己认识的那个样子,简雯也变得如此陌生,所有的一切已人事皆非…… 不甘心的江晓不相信所看到的一切,化身“大侦探”的江晓随着调查的深入,一步步发现原来事情远没有自己想的那么简单…… 爱恨交织,黑白无道。 为守护爱和正义,江晓一步步走上了孤勇的战斗之路……我们给自己描绘了这样一个世界:这里充满爱与繁华,人与自然和谐相处。然而,梦想中的世界与现实中的世界截然不同。干旱的土地、被毁的房屋、逝去的生命……满目疮痍,处处都是仇恨留下的痕迹……无无名古书落入杀手组织,不料竟将其满门被灭,唯一幸存的少年身藏古书,背负血海深仇,踏上复仇之路。与此同时北方三十六魔族蠢蠢欲动,意图南下,看少年又是如何迎魔而上,一路披荆斩棘,成神斩魔......前世顶级杀手转生异界骷髅?! 诡异书页 ,神秘纹路,脑中突然出现的那是什么... 隐秘如一团团迷雾笼罩。 前所未有的异界大陆,阿尔伯特睁开了眼睛。 ”我的士兵,帮助你们的王铲除掉来犯的蝼蚁!” “你管眼前这个叫蝼蚁?!” 阿尔伯特的异界冒险,开始了!喜看网文事业成功的男主,意外落崖之后穿越到自己熟读十余遍的小说世界中,而男主雷震凭借着前世的能力和对异世界的熟悉,重整异世、道心屠魔 破界寻妻! 男主做事果决,飒爽干练,故事逻辑严谨清晰,可以细品。讲故事,很用心,跟我来,不后悔……
网站建设模板是什么 网络安全协议书 深圳专业服务网络安全公司排名 品牌营销推广 且网站制作 网络营销的机会与威胁 网络安全ver.3 深圳精准搜索营销 中国信息安全保护制度 服务好的网络整合营销 中国网络安全实验室 网络营销网站 功能 重庆网络营销推广公司 品牌营销推广 设计网站 网络安全攻击的分类武汉建网站 信息安全ui设计,-1 网站建设公司价格 开源信息安全管理系统 网站设计欣赏 邢台哪儿能做网站 珠宝营销网 科技类网站色彩搭配 网络信息安全事例,-1 想自己建个网站 杭州网站制作外包 南京网站设计 玉林网站建设 工程项目网络信息安全 网络营销运营中心 2017 7月27信息安全 房产全民营销app是什么意思 石家庄网站设计网站维护 张家口网站建设 建设牌官方网站 淮南网站推广 信息安全学python 大连建网站 中山企业网站建设方案 网络安全威胁与挑战