0

Is there any way to redirect following or anything permalink like this:

http://www.example.com/2014/02/post-title.html

to

http://www.example.com/2014/02/post-title/

Any link with a .html in the end to / in the end.

2
  • You could just keep the permalinks intact and not worry about it by adding .html to your permalinks. There are also a few plugins that can help with the transition google.com/search?q=blogger+to+wordpress+redirection Feb 19, 2014 at 19:53
  • I know bout that, but I'm writing a tutorial about how to migrate & was wondering if there's any to make a redirection using .htaccess or functions.php. Feb 20, 2014 at 12:22

1 Answer 1

1

You can set up the redirection on the .htaccess file, adding this row:

RewriteRule ^\d{4}/\d{2}/(.+)\.html$ http://www.example.com/$1/? [R=301,L]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.