logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Change whole folder from http to https
Author
SONIA-H



Joined: 17 Nov 2015
Posts: 2

PostPosted: Wed 18 Nov '15 22:38    Post subject: Change whole folder from http to https Reply with quote

The checkout/onepage is working with https. But, why checkout/cart is not?

http://idfr.com/checkout/cart/
https://idfr.com/checkout/onepage/

Here is fragment of the .htaccess:
############################################
## enable rewrites

Options +FollowSymLinks
RewriteEngine on
# RewriteCond %{REQUEST_URI} checkout\/onepage
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} checkout/
# RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteRule ^checkout/$ https://idfr.com/checkout/ [R=301,L]

############################################


- Apache version: Apache/2.4.7 (Ubuntu)
- operating system: Windows 8.1
- indications in the log files; Main ErrorLog: "/var/log/apache2/error.log"
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 26 Nov '15 19:09    Post subject: Reply with quote

I would use

Code:

<Location /checkout/>
  SSLRequireSSL
</Directory>
Back to top
SONIA-H



Joined: 17 Nov 2015
Posts: 2

PostPosted: Mon 30 Nov '15 20:09    Post subject: Reply with quote

James Blond wrote:
I would use

Code:

<Location /checkout/>
  SSLRequireSSL
</Directory>


I called google team and they accepted the checkout/onepage is working with https, and our merchant account is finally have no suspension. Thank you for the answer.

Just curious, why does the code opening with "Location" and closing with "Directory"?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 01 Dec '15 15:10    Post subject: Reply with quote

SONIA-H wrote:


Just curious, why does the code opening with "Location" and closing with "Directory"?


Typo Wink it should be Location too
Back to top


Reply to topic   Topic: Change whole folder from http to https View previous topic :: View next topic
Post new topic   Forum Index -> Apache