Try the folllowing solution, it works for me.I hope this will work for you too.
-
BEFORE DOING ANYTHING – BACKUP YOUR DB!
-
Now, go into wordpress > settings > permalinks
-
Set it to one of the pretty permalink settings like //year/month/’
-
Open a text editor on your PC/Mac and open the .htaccess file you downloaded from your
webserver -
Find this piece of code
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
-
Replace it with this piece of code, courtesy of Scott Yang:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /index.php/$1 [L,QSA] </IfModule>
-
Upload this code into the main domain root directory on your server and you’re done.
Everything should work