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"
最好的网站建设公司计算机信息安全知识合肥网站制作公司杭电信息安全专业怎样高端全网整合营销推广2017上海网络安全论坛网络安全密钥win 10互联网信息安全规定中国网络信息安全中心网络安全红蓝对抗新浪微博营销的特点信息安全专业学习软件阜阳网站设计信息安全 设计理念高端公司网站信息安全与通信行业协会销售网站网络营销人群分析报告中山网站建设b端c端营销2017 网络安全优秀教师信息安全大事件营销软件代理2016年信息安全大事件网站建设排版规定网络安全的漏洞网络安全周内容公安部信息安全企业之后网络营销对比无锡谁会建商务网站中国信息安全问题日益突出的标志是什么东莞外贸网站推广前一世,风华绝代的哥哥,惊天一跃。从此天下再无传说。 20年后,奔波劳碌的陈征,纵身一跳。从此天涯永割。 他曾无数次追寻哥哥的印迹,追寻他为什么会弃世人而去,只留下难以割舍的伤给了歌迷.影迷们。 当他空洞的从16楼跳下去的时候,他似乎有些明白哥哥为什么了?他似乎后悔自己还有许多责任未完成?他以为他也会在天堂继续追寻他,未曾想他与公交车司机的一句戏言,似乎梦幻成真,回到了95的高中时代,前世的他是否安康?两世的他如何面对两个时空的亲人,情人,他究竟是在做梦,还是……吕布戏貂蝉? 哥来了,没吕布什么事儿了,貂蝉是哥的暖床丫环! 卫仲道要娶蔡琰? 哥来了,没卫仲道什么事儿了,蔡琰是哥的红颜知己! …… 自古英雄出乱世。 现代苦逼青年刘战回到三国乱世,凭着一腔热血,收猛将,招贤士,纳美女,一步一步崛起,成为一方诸侯……玄龙大陆,以武为尊。 少年叶平安得到败天武帝的至尊天眼,从一个卑微的蝼蚁,成为至高无上的绝世武帝! 一路上白骨累累,红颜多娇路飘摇,无敌路上太寂寥!这是一部自传体的小说,书中有自传,也有励志文学,希望这本书能帮到你。科技为刀有两面, 毁灭、创生一念间。 恶人持刀则为恶, 善人持刀则为善。 科技笼罩下的欲望狂野生长。 黑暗来临,动荡将起! 在这个天色已晚天未亮的世界中, 必然有人提刀换天明! 而在黑暗笼罩下的林清也将会成为其中的一员……逍遥自然,离奇古怪,理性奇幻。未世来临,无数人变异,无数人死去。人类只能在夹缝中生存,与各种异种周旋,混出一条生路来。姜丰是个小人物,没有什么大志向,可偏偏命运不会放过他,在他的生存路上,无数的危险,无数的恶梦,通通让他碰到,他拼命挣扎,要保全爱人、家人、朋友的生命,也要保全自己的生命,非常难,特别难,但是必须做。 人生逍遥路漫漫,慢修吾心妄烟云, 运极命数皆注定,鼎立混沌独自清。 罄音撩灵安坐钟,终了余生残破魂, 魂归故里望长生,深入宇空宙已寂。 漫定钟生,慢鼎终深。 人运罄魂,云清魂寂。【2020末世科幻经典】 系列第一部《星神劫》。 穿越数百万光年,他居然又回到了出发的地方——地球。 “他”重返地球了,但没人认得。没人知道,这颗行星上文明的毁灭,正是拜他所赐。 他舍弃了种族和肉体,依靠附体三柱神强横的灵力,一步步操纵着文明的演化。 QQ群:926185550,欢迎进群讨论。 夜羽穿越花果山灵明碎石上乌鸦巢穴乌鸦蛋,得孙悟空爆破出世时散于天地,徘徊乱石周围的造化,从此开始踏入妖修之路!一个关于五大守护神和人类齐心协力一同扬善的故事。有情死,无情生!这是一个起源于苍茫大陆的故事,百万年前,仙魔大战,仙界支离破碎,仙界主宰者邪主陨落,其魂魄未灭,百万年后重聚于下界苍茫大陆,故事由此展开... 邪主因何陨落?仙是否真的存在?在仙界的骗局之下,林云能否找出背后的真相?敬请期待...
互联网信息安全规定 网络安全红蓝对抗 建设手机网站费用 中山做网站的公司 上海网络安全专业大学 网络安全的主要威胁是 警惕网络窃密构筑网络安全防火墙视频 公安网络信息安全 中国 局网络信息安全 全球信息安全 苏州网站制作 网络营销信息传递原则 信息安全等级保护要求 优异网站 微信营销经典案例 网站设计建设趋势 网络安全测试平台 网络安全的漏洞 网络防火墙系统就是网络安全技术在实际中的应用之一英文翻译 论网络营销 营销道理 软文营销案例有故事 浙江网络信息安全 营销软件代理 国际间的网络安全 网络安全的主要威胁是 网络安全与管理ppt 网站快照 川大信息安全专业 网络整合营销的例子 网络安全的主要威胁是 网络营销数据的来源和作用 营销道理 网络安全情报 新浪微博营销的特点 警惕网络窃密构筑网络安全防火墙视频 广州市信息网络安全协会 关于互联网信息安全方面的股票 网站的申请 网站设计模板免费建站