htaccess redirect dynamic posts
Question
Probably not the correct fora to ask, but.. Also probably a simple question..
We are changing our site to Wordpress, and need to redirect old posts.
Previously structure:
http://url.com/art/12345.html
Needs to go to
http://url.com/?p=12345
Solution
Use this before any mod_rewrite directives:
RedirectMatch Permanent ^/art/(\d+).html /?p=$1
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange