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 photos because you have Hot Link Protection turned on and the domain is not on the list of authorized domains.
If you go to your improvised url (http://ip/
username/) and get this error, there maybe a problem with the rule set stored in an .htaccess file. You can attempt 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 your web host instantaneously.
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 Cracked 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.
In this example the file must be in public_html/example/Example/
Notice that the CaSe is significant 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.
When you have a missing picture on your site you may see a box on your page with with a crimson X where the pic 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 crimson X attempt right clicking on the page, then select View Page Info, and goto the Media Tab.
In this example the picture file must be in public_html/cgi-sys/pics/
Notice that the CaSe is significant 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 fresh 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
- Log in to WordPress.
- From the left-hand navigation menu in WordPress, click Settings >, Permalinks (Note the current setting. If you are using a custom-made structure, copy or save the custom-built structure somewhere.)
- Select Default.
- Click Save Settings.
- Switch the settings back to the previous configuration (before you selected Default). Put the custom-built structure back if you had one.
- 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 Two: Modify the .htaccess File
Add the following snippet of code to the top of your .htaccess file:
RewriteRule ^index.php$ – [L]
RewriteRule . /index.php [L]
If your blog is demonstrating the wrong domain name in links, redirecting to another site, or is missing photos 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 screenplays 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 switched.(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.