Go Back   Tech Support Forum > Design Forum > Web Serving and Management

User Tag List

Website redirection from HTTP to HTTPS

This is a discussion on Website redirection from HTTP to HTTPS within the Web Serving and Management forums, part of the Tech Support Forum category. Hello, We come across a lot of speculation on website on Windows server not getting redirected to HTTPS even after

Closed Thread
Thread Tools Search this Thread
Old 12-23-2012, 07:12 PM   #1
Registered Member
Join Date: Dec 2012
Posts: 8
OS: win7



We come across a lot of speculation on website on Windows server not getting redirected to HTTPS even after having standard valid SSL installed on the server for the site.
But, please make sure that you have a licensed ISAPI_rewrite version installed on the server and that you have SSL installed and port 443 is binded your site.

The below content could help someone in need for the same.

To redirect your site from HTTP to HTTPS you need to write down some codes in a file ".htaccess" and then place it under your root folder of the site.

Following is the code for the same.

RewriteEngine on

#Fix missing trailing slash char on folders
RewriteRule ^([^.?]+[^.?/])$ $1/ [R,L]

#Redirect non-HTTPS to HTTPS
RewriteCond %{HTTP:Host} (.*)
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (.*)
RewriteRule .? https://%1%2 [R,L]

Once done, browse your site and it works :)

storminternet is offline  
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti Vira AV/Smart Internet Protection 2011; computer is basically nonfunctional
My laptop seems to have been infected with some pretty unpleasant stuff; the gist of what's wrong is as follows... * Opening Firefox automatically takes me to either a) a page informing me that the site I'm trying to access is a potential security threat. There's a link on the page to a site...
amy blue Resolved HJT Threads 16 03-03-2011 09:39 AM
Having trouble with IE going to a HTTPS website
This issue is happening in a company setting. Our internet filter is not blocking the website as I can go to it, but the person who needs to be able to go to it can't. The person who needs to go to it is running Windows XP SP3 32-bit with IE 8.0.6001.18702, and I'm running Windows 7 64-bit with...
lloyd6770 Internet Explorer & Edge Forum 2 02-16-2011 09:08 PM
Cannot access our own website or emails
Hi I came on here a few weeks ago with a related posting (see thread here: https://www.techsupportforum.com/forums/f31/solved-internet-phone-network-issues-542784.html). Very shortly after we thought it was (SOLVED), the issue is now very much (UNSOLVED)! We are now losing business due to...
truffle32 Networking Support 9 01-28-2011 07:06 AM
Lush website hack 'exposes credit card details'
Luxury cosmetics firm Lush has ditched its UK website in response to a sustained hacking attack which left users vulnerable to credit card fraud. The firm warns that credit card details submitted to the Lush.co.uk site between 4 October and 20 January may have been compromised by the assault by...
sjb007 Computer Security News 0 01-21-2011 10:59 AM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Post a Question

» Site Navigation
 > FAQ
Powered by vBadvanced CMPS v3.2.3

All times are GMT -7. The time now is 06:59 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts