Remove article ID from URL and keep working old URLs

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
goncatin
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Nov 06, 2018 8:51 am

Remove article ID from URL and keep working old URLs

Post by goncatin » Tue Nov 06, 2018 9:19 am

How can I remove the article ID from URL but keep working old URLs?

I'm using Joomla 3.9.0, and If I remove the article ID, old URLs with article ID don't work, resulting in a 404 page.

Then, old URLs linked in social media doesn't work.

How can I fix the issue?

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

Re: Remove article ID from URL and keep working old URLs

Post by Webdongle » Tue Nov 06, 2018 9:59 am

Work around ... use redirect ?
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

goncatin
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Nov 06, 2018 8:51 am

Re: Remove article ID from URL and keep working old URLs

Post by goncatin » Tue Nov 06, 2018 10:11 am

Webdongle wrote:
Tue Nov 06, 2018 9:59 am
Work around ... use redirect ?
URL rewrite? I have enabled

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

Re: Remove article ID from URL and keep working old URLs

Post by Webdongle » Tue Nov 06, 2018 2:06 pm

No not rewrite.
Redirect ... you can use .htaccess to redirect old url's to new url's or you can use Joomla's Components >>> Redirects.
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

goncatin
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Nov 06, 2018 8:51 am

Re: Remove article ID from URL and keep working old URLs

Post by goncatin » Wed Nov 07, 2018 6:44 am

Webdongle wrote:
Tue Nov 06, 2018 2:06 pm
No not rewrite.
Redirect ... you can use .htaccess to redirect old url's to new url's or you can use Joomla's Components >>> Redirects.
Thanks for the answer. But with this plugin, I must configurate one for one all URLs, Is there any way to do it automatically?

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 6048
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Remove article ID from URL and keep working old URLs

Post by sozzled » Wed Nov 07, 2018 7:10 am

See background to this matter at viewtopic.php?f=9&t=954795&p=3492928#p3492928
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

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

Re: Remove article ID from URL and keep working old URLs

Post by Webdongle » Wed Nov 07, 2018 9:45 am

Simply put
If you alter the url routing and want the old url's to also point to the new url's ... then you need to Redirect the old url's to the new url's.
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


Post Reply

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