Last post 2 hours 36 min ago
Posts last week 81
Average response time last week 44 min
All time posts 70354
All time tickets 10858
All time avg. posts per day 20

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.

#6232 – Canonical Urls in sh404sef

Posted in ‘Pre-sale questions’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 23 November 2015 22:57 UTC
nauseous
Would it be a good practice to add code to components/com_sh404sef/shPageRewrite.php:

*/
// all done
return $buffer;

with

*/
// CANONICAL LINK FIX

$buffer = shInsertCustomTagInBuffer( $buffer, '</head>', 'before', '<link rel="canonical" href="'.$shPageInfo->shCurrentPageURL.'" />', 'first');

//CANONICAL LINK FIX - END

// all done
return $buffer;

to increase SEO scores or would this be worth it? I read suggestions but not sure if this would really make a lot of difference or you would have added this option already to sh404sef.

I trust your practices.

Thanks
Tuesday, 24 November 2015 09:46 UTC
wb_weeblr
Hi

I'm note sure what you mean by that code? it doesn't do anything?

Why do you want to "fix" a canonical link? are they broken?

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.