Blog for web designers

htaccess to fixed page not Found After Changing Permalink

I had setup my wordpress site in my localhost. After testing all the thing I prepared to moved it into live server. The home page landed successfully with no errors, then I took a deep breath. But when I try to visit inner pages I was getting page not found error. It really blow my mind away. With some research on Google I found that the issue was occurring due to the mod_rewrite was disable in my hosting. So htaccess to fixed page not Found After Changing Permalink copy the below htaccess code and paste it in your .htaccess file. It usually found on the root directory of the whole website. If you do not found it you can create a new one.

Htaccess code to fixed the changing permalink to /%postname%/

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

Santosh Shah

My name is Santosh Shah and blogs at santosh-shah.com


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.