2

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

1 Answer 1

3

Use this before any mod_rewrite directives:

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

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.