301 redirect a part of the URL

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x 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.
Post Reply
Forsh
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Sat Aug 20, 2005 3:05 pm
Location: 2029 Larimer St, Denver, CO 80205
Contact:

301 redirect a part of the URL

Post by Forsh » Mon Jan 14, 2019 3:26 pm

When I was setting up my site I used certain words that were relevant....but now they aren't and I was looking for a way to change words in a URL without breaking every link below that word in the URL.

For example:

That URL has the word "vehicles" but the category has nothing related to that anymore so I was thinking maybe (hopefully) I could alter a word that alters every link in this caegory as well.

Code: Select all


Original Category Name
......com/[b]vehicle-donation-colorado[/b]/tag/sample-article-name-13-step-denver

......com/[b]denver[/b]/tag/sample-video-name-11-step-denver Articles 404
......com/[b]boulder[/b]/tag/sample-pics-name-12-step-denver Articles 404
......com/[b]aurora[/b]/tag/sample-downloads-13-step-denver Articles 404
Instead of me fixing hundreds of broken links manually maybe Joomla can do a 301 for the category?Man, there has to be a way to do this with htaccess or a Joomla extension. People or organizations with 10's of thousands of pages wouldn't do this many by hand?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 36932
Joined: Sat Apr 05, 2008 9:58 pm

Re: 301 redirect a part of the URL

Post by Webdongle » Mon Jan 14, 2019 3:47 pm

Edit the Menu item 'Title' field ... that will leave your menu items the same but give a different url.
Or you could Redirect using the redirect Component or with .htaccess.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein
Member of the CMS Release Team

Forsh
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Sat Aug 20, 2005 3:05 pm
Location: 2029 Larimer St, Denver, CO 80205
Contact:

Re: 301 redirect a part of the URL

Post by Forsh » Mon Jan 14, 2019 4:27 pm

But I would need a way to 301 or every post will be a dead link. The URL simply needs to do this...


#1 NewTitle/category/article.html

#2 HappyTitle/category/article.html

#3 Title/category/article.html

#4 Help/category/article.html

#5 GreatTitle/category/article.html

#6 PuppyTitle/category/article.html
.
.
.
.
.

#2022 PuppyTitle/category/article.html

(think hundreds and thousands of content)
  • OLD SITE > SECTION >CATEGORY

    NEW SITE > 301 >CATEGORY
This is what needs to happen...but I was hoping Joomla had something like this automating the change and adding a 301 redirect.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 36932
Joined: Sat Apr 05, 2008 9:58 pm

Re: 301 redirect a part of the URL

Post by Webdongle » Mon Jan 14, 2019 5:39 pm

Menu item Title (and Title Alias) 'Cars' is
site/cars.html

Menu item Title 'Cars' with Title Alias 'xyz' is
site/xyz.html

---------------------------------------------------------------------------------
Menu item Title (and Title Alias) 'Cars' above
child item Title (and Title Alias) '4by4'
site/cars/4by4.html

Menu item Title 'Cars' with Title Alias 'xyz' above
child item Title (and Title Alias) '4by4' is
site/xyz/4by4.html
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein
Member of the CMS Release Team


Post Reply

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”