Page 1 of 1
301 redirect from old category to the new [Need Help]
Posted: Sun Nov 20, 2011 8:29 pm
by puneetjain87
I have a category, the url of which looks like mysite.com/oldcateogry
Now I want to redirect it to the new category, so my url should look like mysite.com/newcategory.
Also, all the pages like page-1, page-2 etc should be redirected to respective pages of the new category.
How can I do it in .htaccess.
Thanks in advance
Re: 301 redirect from old category to the new [Need Help]
Posted: Mon Nov 21, 2011 3:11 pm
by Leftfield
Google for 301 redirection htaccess. It might be that my code is not working on your server. I did like this (after rewrite base):
Code: Select all
RewriteRule ^optimizacija-sajta$ http://www.leftfield.me/seo/optimizacija-sajta [R=301,L]
RewriteRule ^intervju-sa-markom-milenovicem$ http://www.leftfield.me/intervjui/intervju-sa-markom-milenovicem [R=301,L]
Its all after: RewriteBase /
Re: 301 redirect from old category to the new [Need Help]
Posted: Mon Nov 21, 2011 3:22 pm
by puneetjain87
Thanks
Re: 301 redirect from old category to the new [Need Help]
Posted: Mon Jun 30, 2014 9:10 am
by Jquerer
If I have the following:
http://example.com/blog-domain-name/blog-post.html
I want it like this:
http://example.com/blog/blog-post.html
Can I do this with a simple 301 redirect using wildcard without complex apache mod_rewrite?
Like /blog-domain-name/* /blog/*
Will new blog URL know that I want all requests arriving at destination blog posts?
Re: 301 redirect from old category to the new [Need Help]
Posted: Tue Jul 12, 2016 6:30 am
by jonBuckner1
D'oh
Exactly my question
Looking for an answer
Re: 301 redirect from old category to the new [Need Help]
Posted: Wed Jul 13, 2016 12:03 pm
by jonBuckner1
Is this the answer:
RedirectMatch 301 /old-category(.*) /new-category/$1