I've been searching the forums all day for an answer to this, but can't seem to find it.
My issue: When I type www.example.com/forum/ it redirects to https://example.com.
Interestingly, when I type www.example.com/forum/forums/topic-name.25/, it leads to https://example.com/forums/topic-name.25/.
Any ideas how to fix my .htaccess code?
My issue: When I type www.example.com/forum/ it redirects to https://example.com.
Interestingly, when I type www.example.com/forum/forums/topic-name.25/, it leads to https://example.com/forums/topic-name.25/.
Any ideas how to fix my .htaccess code?
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} www.rickme.com$
RewriteRule ^(.*)$ https://rickme.com/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]