HTTPS://... On All Parts of My Site?
Posted by: Jeteroll (---.dyn.optonline.net)
Date: October 06, 2012 09:35PM

So here's the deal, I have SSL set up on WAMP (Thanks a bunch to SteveMartin99 for this grinning smiley ) I can type []... to get to the https version of my site, but I was wondering how to get my site to automatically go through SSL on all parts of it. I figured out how to do this on WP, I just went to settings and changed my site location to []... but I cant figure out how to to do this on otgher parts of my site. Any help would be great smiling smiley

TL;DR How do I get my site to automatically go through https when somone goes to it without manually typing in []... ?

Options: ReplyQuote
Re: HTTPS://... On All Parts of My Site?
Posted by: stevenmartin99 (Moderator)
Date: October 06, 2012 09:54PM

using htaccess files.

in the .htaccess file in your website folder

you need

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) []%{HTTP_HOST}%{REQUEST_URI}


since wordpress already uses a htaccess file , you might not be able to use this code directly as it may conflict with what is there already

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: HTTPS://... On All Parts of My Site?
Posted by: Jeteroll (---.dyn.optonline.net)
Date: October 07, 2012 02:45AM

Thanks Steve your the best smiling smiley

Options: ReplyQuote
Re: HTTPS://... On All Parts of My Site?
Posted by: Jeteroll (---.dyn.optonline.net)
Date: October 07, 2012 11:43PM

Didn't work...
I put it in my cgi-bin folder, but then it still goes to http:// ... when I access something from that folder



Edited 2 time(s). Last edit at 10/07/2012 11:53PM by Jeteroll.

Options: ReplyQuote
Re: HTTPS://... On All Parts of My Site?
Posted by: stevenmartin99 (Moderator)
Date: October 08, 2012 01:02AM

who said anything about CGI?????????????????

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: HTTPS://... On All Parts of My Site?
Posted by: Jeteroll (---.dyn.optonline.net)
Date: October 09, 2012 03:34AM

How do I get CGI Scripts to work with ssl? Currenty, I have apache set to use ssl on my entire www folder (My whole site) and I have apache set to allow ExecCGI on my www folder ( execute CGI script on my whole site), how do I get CGI Scripts to work through ssl?

Options: ReplyQuote
Re: HTTPS://... On All Parts of My Site?
Posted by: Jeteroll (---.dyn.optonline.net)
Date: October 09, 2012 03:37AM

Never mind, got it, had to add "ExecCGI" to my www directory options in my httpd-ssl.conf file

Options: ReplyQuote
Re: HTTPS://... On All Parts of My Site?
Posted by: Jeteroll (---.dyn.optonline.net)
Date: October 09, 2012 04:14AM

New question:

I typed in the code steve asked me to and put it in my .htaccess file. when I then go to anything in that directory with the .htaccess file I get the following in my apache error log:

[error] [client 68.193.178.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: [68.193.178.176]

And then this mess from the debug level log

[pastebin.com] (Saved the general forum form the horror tongue sticking out smiley)

I am using wordpress just fyi. Any help would be appreciated.

Options: ReplyQuote


Sorry, only registered users may post in this forum.