YellowAfterlife
YellowAfterlife

Reputation: 3202

WordPress URLs not ending with a slash redirect to HTTPs homepage

I have a mystery: for my blog,

My .htaccess is nothing unusual:

# BEGIN rlrssslReallySimpleSSL rsssl_version[4.0.7]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
# END rlrssslReallySimpleSSL
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<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]
</IfModule>
# END WordPress

Things that I have tried to no success:

Where would I start with debugging this? This proves a mild inconvenience since most of the pre-2019 links to my website were http without trailing slashes, meaning that they are now broken without any way to indicate to the user that their subject of search is still there - a slash away.

Upvotes: 0

Views: 551

Answers (1)

YellowAfterlife
YellowAfterlife

Reputation: 3202

So, it's unclear which of the things listed in the question has helped, but I have apparently fixed it.

If I were to guess, the original rule in .htaccess was malformed and had been fixed while I was enabling-disabling it (which would have been prior to making a copy that's in the question) - I did undo the rest of the changes after (incorrectly) verifying whether they worked.

Upvotes: 0

Related Questions