404 Error occurs when accessing sub-directories

404 Error occurs when accessing sub-directories, but homepage works well.
Reason: .htaccess file is missing.
  • Solution 1: Automatically create the file via wp-admin portal.
Settings - Permalink, Save Changes.
 
  • Solution 2: Manually create .htaccess file with permission 744. Contents are as below:
# 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>
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install Wordpress Website

1 Introduction WordPress is a free and open-source content management system (CMS) based on PHP...

Major Security Vulnerability in WordPress, Drupal Could Take Down Websites

A security researcher from Salesforce.com’s product security team, has discovered an XML...

Login credential is required when uploading via wp-admin portal

Reason 1: Permission for website files and directories is incorrect. Solution: Correct...