Reputation: 351
Hi i need to create a soft 301 redirect if "/myproject/" is coming in my url i have to add "blog/myproject/" and redirect to that url
examlpe.com/myprojects/test.html => examlpe.com/blog/myprojects/test.html
examlpe.com/myprojects/myvilla.html => examlpe.com/blog/myprojects/myvilla.html
examlpe.com/myprojects/car.html => examlpe.com/blog/myprojects/car.html
there are lots of url coming like this .
How i can redirect ? I don't want to redirect one by one like this
Redirect 301 /examlpe.com/myprojects/test.html http://examlpe.com/blog/myprojects/test.html
Please help
Upvotes: 1
Views: 16
Reputation: 41219
You can use this :
Redirect 301 /myproject/ /blog/
This will redirect all requests from /myproject/
to /blog/
Upvotes: 1