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


Use this before any mod_rewrite directives:

RedirectMatch Permanent ^/art/(\d+).html /?p=$1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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