SEO Class in Chicago, IL
Learn How To Optimize Your Website on July 26, 2013
High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!
Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
How Do I Redirect Https To Http On My Site?
#1
Posted 23 May 2008 - 06:40 PM
#2
Posted 23 May 2008 - 08:36 PM
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
#3
Posted 23 May 2008 - 11:25 PM
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
I do indeed. That seems simple enough! Thanks a million!
#4
Posted 24 May 2008 - 12:14 AM
#5
Posted 24 May 2008 - 01:04 PM
Good luck!
Seriously though, it can be done on IIS. I'll leave explaining exactly how to someone who works with IIS every day because there may be some differences between the different version with which I'm obviously not familiar. If you review Chris' Smart 404 code samples here on the forum you can use a similar snippet of code at the top of each page to perform the redirect from https to http. I believe the IIS server variable you'll be looking at as the trigger will be Request.ServerVariables("HTTPS")
#6
Posted 29 May 2008 - 08:20 AM
2. Test this code:
RewriteCond %HTTPS (?!off).*
RewriteCond Host: (.*)
RewriteRule (.*) http\://$1$2 [I,RP]
3. Let us know if it works.
Edited by jehochman, 29 May 2008 - 08:28 AM.
#8
Posted 29 May 2008 - 04:55 PM
#9
Posted 24 July 2008 - 08:36 AM
I have a related issue on my site, I have noticed that Google is displaying the home page and other pages of the site with the https protocol sometimes and others with http protocol it might be creating canonical issues.
I want to clear out that the home page does not have any forms to be filled out. I was told that this issue has something to do with server configuration.
How to handle this issue so just the pages with forms show as https and the rest of the Site as http? And not both ways as I see it is showing for the entire site.
Server info: pc server / intel xeon hardware with Redhat Linux as OS, dedicated hosting.
Some pages on the Site were set as https for security purposes, visitors come to these pages and leave personal information so they wanted to make sure the information on these pages are encrypted. The problem though is that for some reason, by setting these secure pages on the Site, all pages on the Site are also accessible via https protocol.
So on the Site there is an http version of each page and a https version of each page, that creates dup content in my opinion. I was told that had to with the way the server was set up.
What I want to know is how to set up https pages just for the ones that need to be secure and not do it for the entire site, as it is now on the site?
Thanks in advanced.
#10
Posted 24 July 2008 - 02:39 PM
What type of server are you on. Unix/Linux or IIS? And is it safe to assume there are only a few pages that need the https secure version, and the vast majority would be better off without https?
First you may want to take a look at how you're linking between your pages. If you're using referential links it's important to remember the browser or other user agent can easily get things confused. Both for http/https issues as well as www/non-www issues.
A quick and dirty stab in the dark just in case you're on a *nix server with mod_rewrite enabled and you only have a few of those form pages you need to exclude
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{REQUEST_URI} !^/formpage1\.php [OR]
RewriteCond %{REQUEST_URI} !^/formpage2\.php
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]
You can use as many rewrite condition lines as necessary to exclude pages that need to be able to be secure. Just make sure to put an [OR] after each of these, excepting the last one.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










