Permalinks change using htaccess
-
Hi,
I have a new blog imported from wordpress.com
I have updated the permalinks on my wordpress from
this one
/%year%/%monthnum%/%day%/%postname%/
to
/%postname%/
Using this code on the htaccess:RewriteCond %{REQUEST_URI} !page RewriteRule ^[0-9]{4}\/+[0-9]{2}\/+(.+)$ /$1 [L,R=301]
This works fine for archives, for posts and for pages, but the comments url are not being redirected properly when ther is a pagination on it:
Example URL
http://domain.com/2013/08/29/postname/comment-page-1/#comment-179
fails
This one works ok:
http://domain.com/2013/08/29/postname/#comment-179Any ideas on how to fix it?
Thanks
- The topic ‘Permalinks change using htaccess’ is closed to new replies.