homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

disable or redirect https for all users
disable or redirect https for all users

 8:25 pm on Jan 6, 2011 (gmt 0)

We're having issues where google's indexing links on our site with https for some reason and we can't figure it out why

Does anyone know how to resolve this?

I'm trying to figure out how we can redirect all https queries to go to http



 9:45 pm on Jan 6, 2011 (gmt 0)

What solutions have you tried so far? Do you need to use https on any specific parts of the site?


 10:43 pm on Jan 6, 2011 (gmt 0)

Well when we tried to enable https it seems like all traffic went to https.

We don't need https on any parts of the site.

Only on a subdomain that's hosted somewhere else:


 12:06 am on Jan 7, 2011 (gmt 0)

If you have admin access, then disable the https port entirely.

If not, then put a redirect into the root directory for the HTTPS 'side' of the site.

If the HTTP and HTTPS sides of the site both share the same directory space, then a RewriteRule could be used in example.com/.htaccess:

RewriteCond %{SERVER_PORT} =443
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

I assume that you already have other working rewriterules in your .htaccess file. If not, then please so state.



 11:45 pm on Jan 7, 2011 (gmt 0)

This is actually what we inserted instead and it's working so far in terms of telling Google to stop indexing those links and index the http versions instead

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ [domainname.com...] [R=301,L]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved