<p>Update to the latest SEOmatic; the issue you're describing is a case where SEOmatic operates the same as Craft CMS does in terms of returning a root URL without a trailing slash, but we <a href="https://github.com/nystudio107/craft-seomatic/blob/v3/CHANGELOG.md#3318---20200831" rel="nofollow noreferrer">added a fix to SEOmatic 3.3.18</a> anyway.</p>

CC BY-SA 4.0
2020-12-01T13:33:53.777Z
Hi Andrew, I have version 3.3.24 installed
Jenoff
CC BY-SA 4.0
2020-12-01T16:01:28.673Z
My guess would be that something else is amiss, maybe a server-side rewrite?
andrew.welch
CC BY-SA 4.0
2020-12-01T18:47:17.397Z
yes probably, but I can't find out exactly what at this moment. I will look further. thanks anyway for your help
Jenoff
CC BY-SA 4.0
2020-12-01T13:10:42.473Z
2020-12-01T13:10:42.473Z
andrew.welch
<p>I have installed SEOMatic. However, I am getting incorrect canonical URLs. Here is an example: <a href="https://jenoffvanhulle.com/en/" rel="nofollow noreferrer">https://jenoffvanhulle.com/en/</a>
The URL has a trailing slash, the canonical URL not</p>
<p>A second problem is that I'm having redirect chains. e.g. <a href="http://www.jenoffvanhulle.com" rel="nofollow noreferrer">www.jenoffvanhulle.com</a> -&gt; <a href="https://www.jenoffvanhulle.com" rel="nofollow noreferrer">https://www.jenoffvanhulle.com</a> -&gt; <a href="https://jenoffvanhulle.com" rel="nofollow noreferrer">https://jenoffvanhulle.com</a></p>
<p>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:</p>
<ol>
<li>htaccess</li>
</ol>
<pre>
# Redirect www traffic to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
</pre>
<ol start="2">
<li>general config</li>
</ol>
<pre>
'siteUrl' => [
'nederlands' => 'https://jenoffvanhulle.com/',
'english' => 'https://jenoffvanhulle.com/en/',
],
</pre>
<ol start="3">
<li>base URL settings in Craft</li>
</ol>
<p><a href="https://i.sstatic.net/dolLa.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dolLa.png" alt="enter image description here" /></a></p>
<ol start="4">
<li>SSL certificate settings</li>
</ol>
<p><a href="https://i.sstatic.net/bq5ju.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bq5ju.png" alt="enter image description here" /></a></p>

<config><htaccess><plugin-seomatic><ssl>
Incorrect canonical URLs and redirect chains
# Incorrect canonical URLs and redirect chains

(Asked by: username_0 on 2020-12-01)

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

**Tags:** config, htaccess, plugin-seomatic, ssl

---

## 1 answers

### Answer by username_1 on 2020-12-01. Score: 1

Update to the latest SEOmatic; the issue you're describing is a case where SEOmatic operates the same as Craft CMS does in terms of returning a root URL without a trailing slash, but we [added a fix to SEOmatic 3.3.18](https://github.com/nystudio107/craft-seomatic/blob/v3/CHANGELOG.md#3318---20200831) anyway.

> **Comments:**
> **username_0**: Hi Andrew, I have version 3.3.24 installed  
> **username_1**: My guess would be that something else is amiss, maybe a server-side rewrite?  
> **username_0**: yes probably, but I can't find out exactly what at this moment. I will look further. thanks anyway for your help  

---

