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
https://forums.phpfreaks.com/topic/197711-rewrite-product-page/
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]

Archived

This topic is now archived and is closed to further replies.

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