perfectlover
Member
Posted 2 years ago #
I had been using following permalink.
mysite.com/%postid%.html
now i am using this permalink
/%year%/%monthnum%/%postname%/
I have tried using all redirection plugin and nothing worked for me. I want to implement this with .htaccess. Can anyone help me out.
Thanks
Shob
Hi,
Reset your desired permalink from wordpress admin area and then add this code in htaccess of your blog/site:
# BEGIN WordPress
<IfModule mod_rewrite.c>
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Now, check with blog posts/pages.
Thanks,
Shane G.