• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Enabling Xampp Rewrite http to https.

CesarZ

Well-Known Member
Joined
Sep 20, 2012
Messages
272
Solutions
4
Reaction score
66
Guys i have been dealing with this for almost two weeks. My website is already secured you can only go secured if you type https:// Website.com.

Now, i want people to just put Website.com and the Xampp automaticly Rewrite the http to https.

Right now When i put the website.com it goes to http automaticly.

Thank you for your time.
 
Solution
B
Hey,

Create a .htaccess file in your root web folder, usually named htdocs(for xampp).

Add this code
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

If a .htaccess file already exists and "RewriteEngine On" already exists. Just add lines 2 and 3 below "RewriteEngine On"
Hey,

Create a .htaccess file in your root web folder, usually named htdocs(for xampp).

Add this code
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

If a .htaccess file already exists and "RewriteEngine On" already exists. Just add lines 2 and 3 below "RewriteEngine On"
 
Solution
Thanks a lot guys. I,m about to cry right now. after all this research you guys came with a simple solution. thanks a lot to both
 
Back
Top