SEF url will not change after changing alias Topic is solved

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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
topshield
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jul 23, 2020 6:14 pm

SEF url will not change after changing alias

Post by topshield » Fri Jul 24, 2020 10:56 am

SEF URLs - updating alias name
Post by johnelk » Sat Jan 02, 2010 5:25 pm

Setting SEF URLs to be activated in Global Configuration normally means that an article's alias is used to form the shortened URL. But let's say that you want to change the article's alias so that it is more meaningful - or holds better keywords. If you amend the article's alias in Article Manager and then SAVE it, it will not produce a change in the SEF URL for that page. This is because the original alias is saved in the jos_menu table in the database.

So to amend this alias, you can log on to your site's cpanel (or similar), then call up phpMyAdmin, then select the Joomla database for the site, then highlight jos_menu, and then BROWSE to find the items you wish to change. Having done so, for each one that needs changing use the following SQL command:

UPDATE jos_menu SET alias="my-new-alias" WHERE name="my-article-menu-name" (and hit 'GO').

Hope this helps.

John Elkington
Does this info still hold true in today's Joomla after 10 years?
I have recently uninstalled sh404sef from my site and started using Joomla's built in SEF functionality which is fine but I can not update the urls by changing ailiases.

Sh404sef gave these notices after uninstall:

sh404SEF has been succesfully uninstalled.

- automatically generated SEF url have not been deleted (table #__sh404sef_urls)

- custom SEF url, aliases and pageIds have not been deleted (tables #__sh404sef_urls, #__sh404sef_aliases and #__sh404sef_pageids)

- Custom Title and META data have not been deleted (table #__sh404sef_metas)

Is it these that cause the issue or should I look elsewhere?

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 25057
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: SEF url will not change after changing alias

Post by pe7er » Fri Jul 24, 2020 1:51 pm

topshield wrote: Fri Jul 24, 2020 10:56 am Is it these that cause the issue or should I look elsewhere?
If the component / plugin has been uninstalled, its database tables (that apparently haven't been uninstalled) won't be used any longer.

Do the URLs not change when you change the "alias" in the menu items?
Or could it be hardcoded links in the content that still refer to old links?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

topshield
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jul 23, 2020 6:14 pm

Re: SEF url will not change after changing alias

Post by topshield » Sun Jul 26, 2020 9:12 am

thanks for the reply pe7er,

I must be stupid or had a momentary lapse of reason. You asked the right question and I realized my mistake. I was trying to change urls by changing the article aliases and not menu item aliases.

So sorry.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 25057
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: SEF url will not change after changing alias

Post by pe7er » Sun Jul 26, 2020 11:51 am

You're welcome. Good to hear that you've solved it. Thanks for sharing your solution!
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com


Locked

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