• Home
  • Get help
  • Ask a question
Last post 1 hour 22 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67739
All time tickets 10468
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#2954 – Change many URLs - how?

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 11 November 2016 12:45 UTC
wdburgdorf
 Hi,

I have many URLs like this in one language (using SEO Glossary):
22-glossar/xyz (where "22" is the glossary category)

They should look like this:
glossar/xyz


Then, in another language (the default), they look like this:
xyz

But should look like this:
glossary/xyz

I think I know how to change those links manually, entry by entry in the URL manager, but that would take ages. Is there a simple way to do it? (I would not mind doing it directly in the DB, but don't know how to do it correctly there.)

Thanks!
Friday, 11 November 2016 15:40 UTC
wb_weeblr
Hi

1 - The URLs are built using the SEO Glossary component router.php file. URLs built can vary based on settings under the "By components" tab of sh404SEF configuration, so I think the first thing to try is to:

- set SEO Glossary to "Use default handler" and "Use router.php with menu item" on that configuration tab
- Purge URLs
- See if the URLs are better now

2 - There is no way to modify URLs other than manually
3 - Doing it in the database is doable I think. You first need to disable the "URL disk cache" feature of sh404SEF (if not already disabled), to avoid the cache cause issues.

Then modify the URLs in the #_sh404sef_urls table. Only modify the oldurl field and the dateadd field.
The dateadd is required so that those URLs are marked as "Custom", meaning they won't be deleted upon Purge.
Your site needs to be offline when you do that, so that new URLs are not created while you are working on the database.

Rgds
 
Saturday, 26 November 2016 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.