• Home
  • Get help
  • Ask a question
Last post 7 hours 32 min ago
Posts last week 110
Average response time last week 29 min
All time posts 67419
All time tickets 10424
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.

#3519 – Change "_" to "-" for all urls, and handle 301 for old urls

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.
Thursday, 13 April 2017 10:01 UTC
studiomgd
Hi, how can I automatically rewrite all of articles urls where system will find "_" instead "-"

also can I handle somehow 301 redirect for indexed pages with old urls used "_".

Thank you  
Thursday, 13 April 2017 10:46 UTC
wb_weeblr
Hi

Hi, how can I automatically rewrite all of articles urls where system will find "_" instead "-"
I haven't really tried that, but adding it in the "Character replacement list" should to that:


You will need to add ,_|- at the end of the list, then save configuration, then delete any URLs that could already be in the URL manager, and would need fixing.

also can I handle somehow 301 redirect for indexed pages with old urls used "_".
You cannot do that from inside sh404SEF, we do not do generic redirects, but instead one to one. So you will have to work out a redirect rule to put in your .htaccess file. That's not something we can help you with, but Google should provide some solutions here.

Alternatively, you can simply manually modify those URLs from _ to -. If you do that, sh404SEF will automatically create a 301 redirect. Obviously, it can only be done if the number of URLs is limited.

As a side note, using - instead of _ is indeed the recommended thing to do, however the impact is quite limited, so Google has always said to use - instead of _ on new sites, or new URLs, but to not bother if URLs were already existing and well indexed.

Rgds
 
Thursday, 13 April 2017 11:04 UTC
studiomgd
Perfect, one thing regarding the last part

"Alternatively, you can simply manually modify those URLs from _ to -. If you do that, sh404SEF will automatically create a 301 redirect. Obviously, it can only be done if the number of URLs is limited."

I could do it manually where? inside sh404Sef or directly from article level? also what is the limitation for this? you said that it can be done for limited number, what is a reasonable limit?

Thank you for quick answer.
Thursday, 13 April 2017 12:10 UTC
wb_weeblr
Hi

what is a reasonable limit?
You are the limit ;) You can customize as many URLs as you wish, if you have time for that!

I could do it manually where? inside sh404Sef
In my previous post, I linked to the corresponding documentation page.

I'm not sure what you can do at article level. Why would the article aliases have underscores? that's not how Joomla works, they use -.
Actually, where do those _ come from?

Rgds
 
Thursday, 13 April 2017 13:04 UTC
studiomgd
I got it now, thank you for your help.

Regarding where do those _ come from?
We switched our site from custom CMS to Joomla and we import aliases from the old one.

Thank you and you may close this ticket.
Thursday, 13 April 2017 13:23 UTC
wb_weeblr
HI

Ah I see. Well, don't know how you do the import. Ideally, if you have some kind of automated import, you could replace the _ with - in the old aliases during the import process, and then you would not have any issue, but the redirecting.

Again, as mentioned before, if your site is well indexed with the old CMS, one could wonder if changing the URLs, with the associated need for a redirect, is worth the trouble.

Anyway, Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Be sure to also check out wbAMP, our new Accelerated Mobiles pages plugin for Joomla - the next big thing is SEO, direct from Google themselves!

Rgds

 
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.