jorley Posted April 6, 2010 Share Posted April 6, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/197711-rewrite-product-page/ Share on other sites More sharing options...
cags Posted April 14, 2010 Share Posted April 14, 2010 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] Quote Link to comment https://forums.phpfreaks.com/topic/197711-rewrite-product-page/#findComment-1041556 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.