Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
olaoyesunday

Https And Mode Re-Write

Recommended Posts

Dear Larry,

 Merry Christmas and happy new year in advance!.

 

I don't have ssl certificate now but how do I change the HTTPS in my mode rewrite to HTTP

 

# For HTTPS pages:
RewriteCond %{HTTPS} off
RewriteRule ^(checkout\.php|billing\.php|final\.php|admin/(.*))$ https://%{HTTP_HOST}/$1 [R=301,L]

to HTTP.

anytime I tried to change <a href="https://' . BASE_URL . 'checkout.php" in cart.html to <a href="http://' . BASE_URL . 'checkout.php" it would remove my checkout.php from the subfolder to the root directory

 

here is my full mode re-write

 

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine on
RewriteBase /effortless_ecommerce_2nd/ecomm2/html/
# For the primary categories:
RewriteRule ^shop/(coffee|goodies)/?$ shop.php?type=$1

# For sales:
RewriteRule ^shop/sales/?$ /sales.php

# For specific products:
RewriteRule ^browse/(coffee|goodies)/([A-Za-z\+\-]+)/([0-9]+)/?$ browse.php?type=$1&category=$2&id=$3

# For HTTPS pages:
RewriteCond %{HTTPS} off
RewriteRule ^(checkout\.php|billing\.php|final\.php|admin/(.*))$ https://%{HTTP_HOST}/$1 [R=301,L]

</IfModule>

Share this post


Link to post
Share on other sites

It sounds like you just want to remove those two lines that apply a rewrite rule for pages that require HTTPS.

 

Happy Holidays!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...