Friday 10 March 2017

Inner Pages not working on Localhost

After installing a Word-Press Site on Localhost if the inner pages shows an error like this:-

There are a number of options you can try:-

1.Update the permalinks from the admin panel.
2.Manually upload the '.htaccess' file in the directory having the files of the site(same directory as wp-config.php).

It should have a code like this:-

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Note : The above options can be implemented for any server.

If the above options does not solve the issue on localhost then make sure if the 'rewrite_module' in the 'Apache Modules' of wamp is checked.

After checking the 'rewrite_module' the above mentioned issue should be resolved.

All feedback and suggestions are welcome. I am constantly looking for ways to improve and update my knowledge. You can add your valuable comments with your ideas for making this a better place of queries and their solutions.

Happy Testing:)

No comments:

Post a Comment