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"
信息安全模板企业做网站天津网络安全威信息安全评估 价格,-1厦门微网站建设网络营销基础报告ids 网络安全防护手段中国网络安全50强网站制作厦门公司信息安全服务 全球我想建网站信工所信息安全,-1信息安全专业相关工作的通知传统营销信息传播方式信息安全需要关注网站湖南信息网络安全协会商城网站建设武汉设计网站公司信息安全模板网络安全密匙破解看网络营销教程心得信息安全审计计划企业展示型网站怎么建免费建站网站有哪些东莞全网营销网络推广方案信息安全相关设计网络安全测试工具战略性网络营销策划书qq营销网哈尔滨网站建设市场这是一部浸透着战火硝烟的热血之作。民夫吴顶牛的无心之举,让两辆日军坦克陷入死地。二十九军某部连长任广正,正打算消灭来犯之敌,却接到帮日军推坦克的荒唐命令。坦克事件,成为任广正、邢百里和吴顶牛多年恩怨的导火线。 家国沦亡,吴顶牛和任广正先后加入到邢百里成立的救国军中去。救国军是一支最不被看好的弱小武装。吴顶牛的奇招怪招,任广正的奋勇厮杀,让救国军一步步走向辉煌的胜利。胜利带来的却是内部的分裂和敌视。任广正暗杀吴顶牛未遂,于是率部分裂叛逃,投奔国军。吴顶牛和救国军则接受了八路军的改编 1943年,新海惨案发生,黄骅被杀,谁是幕后真凶在真人死亡游戏浪潮之中,而子轩却卷入了一场真正的死亡游戏,子轩究竟能否和同伴一起发现这场死亡游戏的真相呢?请看这个人狼学园的故事吧玄幻奇幻科幻交织的世界,包涵二十多条体系大道,僵尸、鬼怪、蛊毒、武道、机械师、魔法师... 洪荒大陆三十三重天,灵气复苏的七个星球,无尽星海,多元宇宙,而我只是个普通人…游戏里被称为百科全书的凌云,因为过渡代练意外猝死,重生来到了十五年前。这一世他要称为职业选手,为梦出发。欲望与愿望,仇恨与守护...... 名为“奇迹”的力量往往需要付出代价 这是关于少年北星河,不堪忍受命运的安排,通过“奇迹”逆天改命的故事。 昆明,又叫春城,这是现在众人皆知的名字;但很少有人知道,这座约三万年前,即有人类生活的地区,就是古代佛经里经常提到的“膳戒城”。而更是鲜为人知的是,这座城市又叫龙穴。有龙穴的地方就有龙,有龙的地方就会有一个神秘而又古老的职业,那就是锁龙人。 而在民国时期,战乱不止妖孽横行,锁龙人在昆明一带活动频繁,大部分锁龙人降妖除魔的事都发生在这座城市之中,只是时间久远,不一定全是真事。我说你听,这是一个关于锁龙人的故事。为什么想要变强,因为所在乎的人需要我去守护。无限流系统搞笑来袭,看我修神良秀翻四方,这位小友,你准备好小钱钱了吗 天道陨落,生命祭献,少年轮回,叙写传奇。且看,无双天骄,翻手天初,覆手天末,天临世间!沐辰高考落榜,受校花羞辱猝死网吧,重生九龙大陆亡国太子沐辰身上,在情急之下,修炼了“龟阴功”,成为一名天女国假太监。 为了不暴露自己假太监身份,他步步为营,将两世才华进展,赢得女帝和七位公主欢心。加官进爵,成为女帝个七位公主身边最风流的太监。也成就了九龙大陆巅峰人物,一统天下诸国以及各大门派。 一介神偷无意落入百年阴谋大局,在阴谋中成长,站在世界之巅。
战略性网络营销策划书 信息安全运维体系建设 企业网络营销数据 网络安全官网 2016网络安全法进展 企业电子商务网站 北大 信息安全 网红网站建设 青岛哪里可以建网站 快消品网络营销酒店网络营销方案样版 信息安全审计计划 汕头网络营销公司排名 电商网站有哪些类型 信息安全cnas 网红网站建设 手机微信网站建设 全网营销多少钱 平顶山全网营销 重庆网站开发公 网络安全行业公司 网络营销中4C的特点 京东 网络营销部 全网营销思路 微信手机网站 看网络营销教程心得 网络安全和信息化领导小组成员单位 1.2信息交流与网络安全 战略性网络营销策划书 信息安全论文1500有关于网络安全的内容 欧盟网络安全法律法规 有利于优化的网站模板 天津 网站设计公司 工业信息安全政策体系 学习网络安全技术最好的地方 信息安全的基本要求是 网站主色调 保障国家网络安全 漳州做网站 福田网站建设 珠海移动网站建设报价