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
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
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

afonso2022
afonso2022

Hi Tomasz!

Thank you a lot! Issue fixed!

Regards!

Edgar

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.