I am merging website A into website B.
Website A has thousands of blog posts in a variety of categories.
Heres an example : www.sitea.com/tips/blogarticle1
After the migration, blogarticle1 can be found at: ww.siteb.com/blogarticle1
Notice I have removed the ‘/tips’ part of the URL.
How do I redirect all requests for this page (and all other pages like this) using regular expressions in the .htaccess file?
You can use the following code in sitea/.htaccess :
Refrence :