Jump to content

rewrite product page


jorley

Recommended Posts

Hi guys, so I wrote and haccess file to redirect users to https: once they enter the site. Come to find out that my friend has a widget on there to direct users to a website to create a registry.So every time someone goes to the product page and clicks the add to registry button a window comes up saying there is a security issue with this. I am trying to figure out how to user mod_rewrite in the htaccess file to change the url to http when they are on the ind_products,php?queryhere page and https: when they are on the cart page.

 

Any help would be appreciated.

Link to comment
Share on other sites

  • 2 weeks later...

You would need to use something along the lines of...

 

RewriteCond %{SERVER_PORT} 80
RewriteRule ^cart.php$ https://domain.com/cart.php [QSA,NC]

RewriteCond %{SERVER_PORT} 110
RewriteRule ^ind_products.php$ http://domain.com/ind_products.php [QSA, NC]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • 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.