I have installed SEOMatic. However, I am getting incorrect canonical URLs. Here is an example: https://jenoffvanhulle.com/en/ The URL has a trailing slash, the canonical URL not
A second problem is that I'm having redirect chains. e.g. www.jenoffvanhulle.com -> https://www.jenoffvanhulle.com -> https://jenoffvanhulle.com
It's clear that some settings are not right. Can somebody help me solving both issues please? Below you find a listing of some relevant settings:
- htaccess
# Redirect www traffic to non-www RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
- general config
'siteUrl' => [ 'nederlands' => 'https://jenoffvanhulle.com/', 'english' => 'https://jenoffvanhulle.com/en/', ],
- base URL settings in Craft
- SSL certificate settings