https to http

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 5
Joined: 01 Apr 2013, 21:27
Location: Minnesota, USA

https to http

26 May 2016, 18:06

How do I redirect a entire website from:

https://www.mydomainname.com to http://www.mydomainname.com

Thanks.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: https to http

28 May 2016, 12:28

Hello.
Sorry for the delay.

There is an example on this in documentation:

Code: Select all
RewriteEngine on

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

#Redirect HTTPS to non-HTTPS
RewriteCond %{HTTP:Host} (.*)
RewriteCond %{HTTPS} on [NC]
RewriteCond %{REQUEST_URI} (.*)
RewriteRule .? http://%1%2 [R,QSA]

User avatar
Posts: 2
Joined: 29 Aug 2016, 07:13

Re: https to http

29 Aug 2016, 07:22

That's where SecureWebPageModule comes in. SecureWebPageModule is a class that implements the IHttpModule interface. HTTP modules give programmers a means of "attaching" to a Web application to process its events. It's like descending from the System.Web.HttpApplication class and overriding the application and session events in a Global.asax file. The main difference is you don't have to worry about copying and pasting the same code into the file for every application that is to use it. HTTP modules are simply "linked in" to a Web application and become part of the pipeline.

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 2 guests