SSL Problem with PS4.01 PayPal Express button
I have secured the entire PS4 directory & sub directories using the .htaccess lines, such:
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteCond %{REQUEST_URI} resources
RewriteRule ^(.*)$ https://ofthefield.com/$1 [R=301,L]
My PS4 is installed at ofthefield.com/resources
This works quite nicely and processes normal checkouts well. However, when I try to checkout using the PayPal button under "Fast, Secure Checkout with PayPal", an error is eventually produced. (I am running in production mode doing small real purchases.)
It goes off to PayPay, where I log into my account. I "review my information", press continue, and it thinks for a while.
It then comes back to pp_confirm.php?token=EC-6639xxxxxx848430S&PayerID=Jxxxxxxx6WY7S, where an error is displayed:
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Hint: ofthefield.com:443/
____________________________________________________________
Apache/1.3.42 Server at ofthefield.com Port 443
At that point, if I add the "s" in the address bar of my browser to make it pp_confirm.php?token=EC-66390555S9848430S&PayerID=JLADFY2T6WY7S and hit enter, all is well and it finishes.
What do I change, and in what file, to have it return from PayPal to the correct URL -- the https version?
Thanks in advance- I need to go live very soon.
Eric