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中国网络安全事件2017国家信息安全周主题,-1网络安全 政府网络营销的知识要求网络安全认证方式打造公司的网站四平做网站长沙网站建设清华本科信息安全首都网络安全日完整日程看这里信息安全风险管理办法信息安全等级备案网络信息安全标准证书四平做网站长沙网站建设信息安全技术 安全漏洞等级划分指南为什么要网络安全网络安全现状及前景营销网页设计整合营销什么意思这是一本关于宋氏一族修仙的源来。宋氏一族初代族长创立宋氏一族之后,其后辈子孙的修仙史实。民国初年,江沪青年司机玄狐,在驾驶车辆走夜路时,因碰撞阴魂煞气而丧命! 在九重天阴司府投胎审核寺,玄狐的鬼魂遇到此处监官铭难改等神仙,在进行投胎运程实验游戏,玄狐有幸被挑选参加这个游戏! 从此,玄狐开始扑朔迷离、危机四伏、艰苦卓绝、无穷无尽的换回磨难历程......万年轮回,黑暗再临,千万年的阴谋,谁能破局?……一柄神秘的古剑,一处尘封的遗迹,当世界的真相展现在世人眼前,人们该何去何从?是反抗还是妥协?……手中的剑为什么挥动?只有靠你自己寻找答案! 这是一个近似未来地球的异世界。 名为“黑石”的神秘矿物能将人的情绪与欲望收割转化,为这个世界提供了近乎无穷无尽的能源。 普通人就是被无尽收割的活能源,如同“工具”和“零件”生存。 财团,高官,各种特权者们争权夺利。 而他将颠覆这个世界的规则。武魂大陆,弱肉强食,武者为尊。 天才秦风拥有七级武魂,光明未来,却被青梅竹马夺取武魂,废其经脉丹田。 天无绝人之路,幸运的他得神秘奇遇,恢复根基。自此以后,他踏九天,上云霄,战神明,凌万古! (都市+搞笑+爽文+阴间改革) “昨晚梦到我死了,进了阎王殿。” “阎王爷让我给他的生死簿做个后台管理系统。” 一场大梦之后,余乐成为了地府现代化的主导者…… “小余啊,我之前提到的自动匹配投胎功能,进行的怎么样了。” “我一个人实在太忙了,要不您把后端那个技术拉下去问问……”灵子生物入侵,异能觉醒,变异生物,僵尸丧尸,天火焚城,酸雨铺天,丧命瘟疫,邪恶罪犯等都是我的敌人,我的任务就是帮助人在这个世界上生存。“相信我,希望是好的。”商养浩在末世当中觉醒了救世主天赋,在这个灵能电子干扰下的地球,就像是一个超大型游戏。商养浩在这个数据化世界当中,作为一个高中生。确担当起一个救世主的梦!这是个很不一样的世界,陌生而奇特,但有时陌生世界中的熟悉也许会带来更深的恐惧和更强烈的感情体验,有纵马草原的卓尔布,有权御天下的轮戊帝,有伏剑刺敌的荡天梁......去共呼吸,同命运。一生努力找寻回家的路男主明子皓是一位刚刚毕业的大学生,刚刚打算步入社会的他在一次偶然的机遇下他发现了不为人知的秘密,他的人生从此发生了翻天覆地的变化……
防火墙在网络安全中的应用 信息安全应急处理服务资质认证 京东营销策略有哪些 清华本科信息安全 信息安全等级在哪查询 佛山网站设计代理商 深圳 网络营销 企业 石家庄网站建设外包公司 信息安全指数分级 网络信息安全标准证书 公司网络安全培训 网站策划方法 网站挣钱网 中国网络安全基地 网站建设开源项目github 信息安全逆向分析题目,-1 各大搜索引擎整合营销 企业网站 三合一 scan扫描信息安全技术 网络营销岗位的认知 网站建设公司平台绵阳 网站 建设 信息安全等级保护备案表 山东省网络安全技能大赛 全面解读网络安全发 莱芜网站设计 seo网络营销 优帮云 京东营销策略有哪些 网络安全宣传主题是什么 网络安全认证方式 通信网络安全会议 首都网络安全日完整日程看这里 重庆互联网营销推广 idc isp信息安全管理系统信息安全管理,-1 信息安全指数分级 学网络安全攻防好吗 网络安全课程app 中软吉大网络安全 信息安全包括信息的 网站建设开源项目github 威海网站推广