• Home
  • Get help
  • Ask a question
Last post 1 hour 33 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67805
All time tickets 10478
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.

#2918 – Canonical Tag

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, 03 November 2016 14:31 UTC
4design
We have such a tags in head section:
<link href="https://www.xxxx.com/o-nas" rel="canonical" />
<base href="https://xxxx.com/o-nas" /> 

We want to have all url without 'www'. I noticed it is possible to set custom canonical url but can it be done automaticly to remove 'www' from it?

Best regards
Tomasz.
Thursday, 03 November 2016 14:44 UTC
wb_weeblr
Hi


sh404SEF rarely sets canonical automatically. Both of those are set by Joomla. Your site should not be accessed without the www if you selected www as your main site URL.

Make sure you have a redirect in place to prevent access without www.

The most efficient way to do this is in your .htaccess. You can do it manually (google for the rule) or use things like Akeeba Admin tools to do it for you.

You can also simply use the appropriate setting in sh404SEF:

It's slower, as it's done in PHP, inside Joomla, but much simpler of course.

Rgds
 
Friday, 04 November 2016 10:49 UTC
4design
Hello,

We allready set url without www in htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.xxxx.com
RewriteRule (.*) https://xxxx.com/$1 [R=301,L]

And it is working ok but sh404 add canonical param with www. And we want as I wrote - without www. In sh404 configuration we set - enforce access without www.
When we switch off sh404 - we dont have at all canonical param in html.

Regards
Tomasz.
Friday, 04 November 2016 11:14 UTC
wb_weeblr
Hi

When we switch off sh404 - we dont have at all canonical param in html.
That doesn't mean sh404SEF is adding the canonical.

Are you 100% sure you have the correct canonical domain entered in the Joomla SEF plugin?

Rgds
 
Friday, 04 November 2016 14:16 UTC
4design
You are right. It was wrong settings in configuration.php.

Thanks for suggestion.

Best regards
Tomasz.
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.