SSL force to HTTPS

I have a subdomain: postbook.rf.gd . It can be visited by http:// and https:// also. Can i redirect all http:// to https:// . I am not using wordpress. I am using other script.

Please create new topic.

4 Likes

If you have any problem or question then please create a new Topic instead of posting here

1 Like
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
4 Likes

is it for .htaccess

yes

1 Like

2 Likes

bruh checking your domain I realized that you installed the paste before the ssl I recommend you uninstall the paste Install the certificate and install it again

1 Like

Especially I installed ssl first, the problem is routing.

You have to redirect like this in all ssl’s

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.