htaccess – WordPress is removing trailing slash


Unfortunately, it seems I have a misconfiguration in my wordpress instance. WordPress seems to remove the trailing slash. This only happens when the domain is accessed via www.

When I open, everything seems to work. However, when I open, the trailing slash is removed.

My .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteEngine On
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*)$$1 [R=301,L]

The root domain is set to The permalink structure is set to

Jonas 2 years 2022-02-01T08:58:02-05:00 0 Answers 0 views 0

Leave an answer