Thanks for fixing this. Now we have a new problem with the canonical entry
At the home page of WordPress installations in subfolders:
at https://domain.name/wordpress/ the canonical appears like:
<link rel=”canonical” href=”https://domain.name/wordpress” />
With Apache default “DirectorySlash On” the canonical https://domain.name/wordpress gets redirected to https://domain.name/wordpress/ with 301
So we have canonical with 301 redirect to non-canonical URL
We cannot set a trailing / in the WordPress main Settings as this gets removed after saving the settings. And as per definition site url should be without trailing slash.
We cannot turn “DirectorySlash Off” because then the default wordpress Rewriting Rules cannot work anymore and the DirectoryIndex index.php cannot be found.
All WordPress-generated URLs don’t have the trailing slash and as they are not “real” directories they don’t get the trailing slash redirect from Apache.
How can this be fixed?