301 redirect from old category to the new [Need Help]

Discuss Search Engine Optimization in relation to Joomla! 2.5. This forum will also have discussions on SEF/SEO Joomla! 2.5 extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
puneetjain87
Joomla! Explorer
Joomla! Explorer
Posts: 337
Joined: Mon Feb 16, 2009 4:38 am

301 redirect from old category to the new [Need Help]

Post by puneetjain87 » Sun Nov 20, 2011 8:29 pm

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

User avatar
Leftfield
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4438
Joined: Fri Dec 08, 2006 3:33 am
Contact:

Re: 301 redirect from old category to the new [Need Help]

Post by Leftfield » Mon Nov 21, 2011 3:11 pm

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 /
SEO & SEM Manager https://vujosevic.com/

puneetjain87
Joomla! Explorer
Joomla! Explorer
Posts: 337
Joined: Mon Feb 16, 2009 4:38 am

Re: 301 redirect from old category to the new [Need Help]

Post by puneetjain87 » Mon Nov 21, 2011 3:22 pm

Thanks

Jquerer
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Jun 26, 2014 10:36 am

Re: 301 redirect from old category to the new [Need Help]

Post by Jquerer » Mon Jun 30, 2014 9:10 am

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?

jonBuckner1
Joomla! Explorer
Joomla! Explorer
Posts: 428
Joined: Mon Nov 12, 2012 9:08 am

Re: 301 redirect from old category to the new [Need Help]

Post by jonBuckner1 » Tue Jul 12, 2016 6:30 am

D'oh



Exactly my question


Looking for an answer

jonBuckner1
Joomla! Explorer
Joomla! Explorer
Posts: 428
Joined: Mon Nov 12, 2012 9:08 am

Re: 301 redirect from old category to the new [Need Help]

Post by jonBuckner1 » Wed Jul 13, 2016 12:03 pm

Is this the answer:

RedirectMatch 301 /old-category(.*) /new-category/$1


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 2.5”