I had old wordpress blog which was under mywebsite.com/wordpress
Now I have moved this blog but I would like to redirect the entire wordpress folder to a single category page mywebsite.com/category/test
The problem is that I don’t know how to redirect dynamic pages (all at once) such as
wordpress/?p=1
wordpress/?p=2
wordrpess/?page_id=1362
and others.
I don’t need a page to page redirect, just an entire redirect from the wordpress folder to one single category page.
I see that you have used the .htaccess tag, so assume you have access to an .htaccess file.
Try this in .htaccess in the root of your website:
Let us know if that works!
EDIT: Add a ? to the end of the destination rule to strip the querystring info:
Ben