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"
网络安全研究方法网站本地调试用localhost上传服务器该如何修改网站功能系统网络安全测试信息安全建议网络营销论文问答营销推广的作用嘉兴的网站设计公司有哪些网络安全培训资质宁夏网站建站网络安全研究方法兴化网站制作网络事件营销方案网络安全学啥网络安全重要性 flash微博网络营销团队不属于网络安全技术idcisp信息安全管理系统跨境电子商务网络营销网络安全管理培训深圳 网站制作石家庄做网站萝岗网站建设自己创造网站平台网站建设插件兴化网站制作临沂在线上网站建设网络营销难吗五华区网站信息安全教程 网盘,-1三年前,他破产落败,从天堂跌落地狱,尝遍了人情冷漠,白眼奚落,谩骂针对。 三年后,他携一身本领强势回归! 他是神医,也是杀神!不论你是想活命,还是想见阎王,都一个一个来!“这万千宇宙,也该定定了。”邵朝阳仰面望着那广阔的无尽星空,心中无限感慨,“可是,我不想再管了。”邵朝阳转过头去,望着身后白衣如雪,宛若天仙的上官靖雪,笑了笑,“就让我,任性一回吧。”从地球穿越到平行空间的末世,陌游生该何去何从 伴随而来的召唤师系统、全人和亚人之间的矛盾、魔兽的进攻…… 对故乡的思念…… 我是陌游生,荣耀系统,请多多指教。 当稚嫩少年遇到乱世风云,当家园遭到野蛮的屠杀,当亲人的胸膛在少年眼前被利剑贯穿,一切报复都难以抹去血海深仇。亲人的血液沾染了双手,泪水已然流尽。 当少年不再流泪,当少年不再为私仇,当少年心怀天下与黎民,仇恨得到原谅,乱世已然成历史,少年已然成暮年。来自于那个时代的故事 但带着这个时代的气质当火山喷发,大地颤抖,罪王的讴歌从远方传来,冰川消融,露出的是真实的利爪。一九八六年,高光、吴宇、程思浩.....等青年,踏上社会,误入歧途的不堪往事。 那是一个特殊的时代,在那个时代的角落里,有那么一群人,发生了只属于那个时代的故事。 无论那些年,那些人,那些事,有多么的不堪。但是,它终究是发生了,属于那个时代的一个小小符号。 这个符号嵌入了那些人的青春乃至一生,当我们翻开尘封的记忆,往事有那么的不堪回首,可是我们仍然要记住它。用时代去理解,用时间来释怀! 所有的故事都源自生活,所有的人物都不是个体,那是一群人在时间的长河中留下的一幅缩影。 今天来回忆那些故事,希望闻者宽,去者安,来者戒!天启年间,年轻的朱由校,望一举解决辽东之患,然而,事态之发展,却出乎他的意料,最后,竟然导致了更大的灾难……抗日战争爆发,一寸山河一寸血,十万青年十万军,热血青年方岑,文海投笔从戎,等待他们的不是理想的光芒,而是血肉的磨盘,在这个战火纷飞的年代,中国军人无疑到了最危险的时刻,方岑与文海的热血朝气也伴随着中国军人流不尽的血一样的流去……这是一场关于魔法,名为永恒的圣战! 那夜,恶魔如天使般降临,身为魔王却为少女规划出一条救世之路。 魔法少女不一定身穿粉色洛丽塔套裙、手持心形魔杖,她也可能身披黑色羽甲、手握战矛与敌人贴脸输出。 你问魔法? 噢!她用来防御。
美国国家信息安全战略 长春网站建设 网络营销外包公司 网络营销是谁提出的 功能性网站 2015年6月 网络安全法整合营销传播的作用 网站策划网男女网络安全意识 信息安全员证书 信息安全产品体系,-1 中国信息安全测评中心招聘 信息安全安全测试 网络营销难吗 营销媒体 北京营销培训课程 饥饿营销的策略 大连网站制作 顺德新网站建设 西安网络营销岗位数量 网站jianshe 网站策划网男女网络安全意识 网络安全学啥 2017网络安全年会cert 重庆网站开发商城 信息安全评估服务 西安 网站搭建 大连网站制作 网站设计公司南京 2015年6月 网络安全法整合营销传播的作用 信息安全评估常用参数 如何自己建网站 营销有哪些渠道 公司信息安全管理建议和意见 亚马逊 内容营销 信息安全员证书 临沂在线上网站建设 信息安全内审员 武汉网站设计 信息安全中心招聘 嘉兴的网站设计公司有哪些 芜湖网站建设公司