This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
afonso2022
Hi:
I installed octobercms on a shared hosting and everything is working fine.
However, when I type: https://www.mydomain.com/page it doesn't get the page requested and don't give me the 404 page.
It only works when I type it without www: https://mydomain.com/page here everything works fine.
Maybe I need to change something on . htaccess file...
Any advise on this? Thank you!
inIT
In typical usecase I always want users to be redirected to https
with www
.
That's the rule I'm using (change the DOMAIN):
RewriteCond %{HTTP_HOST} !^www\.DOMAIN$ [NC]
RewriteRule ^(.*)$ https://www.DOMAIN/$1 [R=301,L]
Make sure you have the RewriteEngine
turned on.
Tomasz Strojny
1-3 of 3