Reputation: 3202
I have a mystery: for my blog,
http://yal.cc/about
) redirect to the HTTPS homepage (https://yal.cc
) rather than the HTTPS version the URL./about/
) redirect correctly./game-tools
) also redirect correctly.http://ru.yal.cc/about
) also redirect correctly..htaccess
)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:
.htaccess
/%postname%
instead of /%postname%/
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
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