Reputation: 1623
I'm asking a wired question here. Actually there is a way to do this for blogger to wordpress migration as stated in labnol.org. But I'm asking that suppose I'm transefing my blog to a new domain and have exported the posts from old sie & imported to the new one. Now I'm looking for some trick so that whenever any user click on the old link of that post, they will be redirected to the new url. Any help?
Upvotes: 0
Views: 64
Reputation: 785058
Use this rule as your first rule:
RewriteCond %{HTTP_HOST} isaumya\.com$ [NC]
RewriteRule ^[^/]+/[^/]+/[0-9]+/?$ http://9tutorials.org%{REQUEST_URI} [R=301,L,NE]
Upvotes: 1
Reputation: 1717
If you're using apache on the back end (highly likely), use mod_rewrite: https://httpd.apache.org/docs/current/mod/mod_rewrite.html
Upvotes: 0