Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-01T13:33:53.777Z
Answers.Text: Hi Andrew, I have version 3.3.24 installed
Answers.UserDisplayName: Jenoff
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-01T16:01:28.673Z
Answers.Text: My guess would be that something else is amiss, maybe a server-side rewrite?
Answers.UserDisplayName: andrew.welch
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-01T18:47:17.397Z
Answers.Text: yes probably, but I can't find out exactly what at this moment. I will look further. thanks anyway for your help
Answers.UserDisplayName: Jenoff
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-01T13:10:42.473Z
Answers.LastActivityDate: 2020-12-01T13:10:42.473Z
Answers.UserDisplayName: andrew.welch
Body: <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>
  
Tags: <config><htaccess><plugin-seomatic><ssl>
Title: Incorrect canonical URLs and redirect chains
ThreadText: # 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](http://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:
  
  1. htaccess
  
  ```
  
  # Redirect www traffic to non-www
  RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
  
  ```
  
  2. general config
  
  ```
  
  'siteUrl' => [
  'nederlands' => 'https://jenoffvanhulle.com/',
  'english' => 'https://jenoffvanhulle.com/en/',
  ],
  
  ```
  
  3. base URL settings in Craft
  
  [![enter image description here](https://i.sstatic.net/dolLa.png)](https://i.sstatic.net/dolLa.png)
  
  4. SSL certificate settings
  
  [![enter image description here](https://i.sstatic.net/bq5ju.png)](https://i.sstatic.net/bq5ju.png)
  
  **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  
  
  ---
  
  