We have a subdomain which is implemented in WordPress: https://blog.aisee.co.in/ and it has more than 2000 posts in it.
As per SEO perspective, we wanted to migrate the subdomain to the main root domain: https://www.aisee.co.in/
So we created a folder/directory where we want to migrate subdomain post articles: https://aisee.co.in/scholarship/ (it is also in WordPress)
Keeping SEO Ranking Factors in mind, We want to 301 redirect the subdomain url to new url: For Example -
We wanted to Redirect: https://blog.aisee.co.in/manipal-university-dr-tma-pai-scholarship/ to https://aisee.co.in/scholarship/manipal-university-dr-tma-pai-scholarship/
Currently, we have imported all the subdomain articles to the root domain and there are more than 2000 URL need to be 301 redirected.
Instead of manually redirecting each URL, I wanted to know if there is any pattern matching or easy way to redirect all these URLs at once.
If there is an easy way out either through a plugin or through code then please do let know. It would be very helpful.
Thank you.
www.example.com/wpurl
since you are usingwww.example.com
. If you have set it up atexample.com/wpurl
with no "www" search engines see it differently. – WebElaine Aug 16 '19 at 13:29