O people, I am hosting my own server and for this I have two IP addresses (for people connecting an intranet and one) to connect people outside and I have two dynamic DNS in IP Redirects are I have just installed / set up SSL on my APA 2-based server, and I try to use .htaccess to force users to use https Yes, this is a statement to me like
Rewighting on Restricted code% {SERVER_PORT} 80 revised rule ^ (. *) $ Https: //mywebsite.dyn.site/$1 [R, L] / The problem is that since I have two different domain names for the same website, this statement will redirect all traffic to a specific domain. I think what I am asking is if there is one.) A conditional statement is a way to check for their IP, or preferably B.) "Mywebsite" has a hardcode, and for a variable
Well, I would appreciate any help much.
After searching for half an hour, and then after posting it on the right, I got the answer ... right. For any person who is trying to do this, all you have to do is use a variable for web address instead of hard coding.
The way I did it was done by adding it to my .htaccess:
RewriteEngine On RewriteCond% {HTTPS} Close Rivetry (. *) Https: / Just like any URL will be entered and the http to https Cheers
Div>