Jump to content

Shutupquare

Members
  • Posts

    8
  • Joined

  • Last visited

Shutupquare's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. It wouldn't break https if the proxy server was the one doing the ssl, Client connect securely to proxy, proxy connects insecurely to wordpress webserver. Sure the connection between proxy and webserver is insecure but it's internal and could even be on the same host. I don't think it would pass any PCI compliance checks though!
  2. Yeah I checked them out yesterday, $_SERVER["SERVER_PORT"] = 80 for both http and https, however $_SERVER["REMOTE_ADDR"] shown my IP address for http and https, but the proxy could pass that through right?
  3. So somehow it thinks that it's not on https even though it very much is. Would this have something to do with internal rewrites in Wordpress?
  4. Just tried it here is the results: PS C:\Users\Stephen> C:\Users\Stephen\Downloads\curl-7.23.1-win64-ssl-sspi\curl.exe -k -i https://www.mysite.com/cart HTTP/1.1 302 Found Date: Wed, 20 Feb 2013 11:43:11 GMT Server: Apache Location: https://www.mysite.com/cart---off Vary: Accept-Encoding Content-Length: 291 Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="https://www.mysite.com/cart---off">here</a>.</p> <hr> <address>Apache Server at www.mysite.com Port 80</address> </body></html> Cheers.
  5. Thanks for the reply, It gets redirected to the https: version of the page but the page never shows as it complains about a loop. if I run curl on the page to negate any caching problems PS C:\Users\Stephen> C:\Users\Stephen\Downloads\curl-7.23.1-win64-ssl-sspi\curl.exe -k -i http://www.mysite.com/cart HTTP/1.1 302 Found Date: Wed, 20 Feb 2013 09:07:06 GMT Server: Apache Location: https://www.mysite.com/cart Vary: Accept-Encoding Content-Length: 285 Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="https://www.mysite.com/cart">here</a>.</p> <hr> <address>Apache Server at www.mysite.com Port 80</address> </body></html> PS C:\Users\Stephen> C:\Users\Stephen\Downloads\curl-7.23.1-win64-ssl-sspi\curl.exe -k -i https://www.mysite.com/cart HTTP/1.1 302 Found Date: Wed, 20 Feb 2013 09:07:06 GMT Server: Apache Location: https://www.mysite.com/cart Vary: Accept-Encoding Content-Length: 285 Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="https://www.mysite.com/cart">here</a>.</p> <hr> <address>Apache Server at www.mysite.com Port 80</address> </body></html> If I got to the http url I get rightfully redirected to the https url, but when I go to the https url I get redirected back to the https url again even though i'm already on it.
  6. Okay somthing strange happened when i posted the .htaccess here it is raw. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} (checkout|cart|my-account) RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=302,L] # BEGIN WordPress RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress </IfModule> # END WordPress
  7. Hi all been banging my head against a wall on this one and looked at a lot of articles. I'm trying to rewrite 3 sections of a wordpress site to https if they are accessed over http: /cart/ /my-account/ /checkout/ As well as these rewrite's worpress has added a rewrite to remove index.php out of the url. The index.php rewrite is about the only thing that is working. here is my .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} (checkout|cart|my-account) RewriteRule ^(.*)$ [url="https://%{SERVER_NAME}%{REQUEST_URI}"]https://%{SERVER_NAME}%{REQUEST_URI}[/url] [R=302,L] # BEGIN WordPress RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress </IfModule> # END WordPress It redirects to the https but then gets stuck in a loop and the browser will complain of a loop. Any rewrite guru's in here.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.