I only want to redirect my checkout page to https

Programming
Tutor: None Selected Time limit: 3 Days

I only want to redirect my checkout page to https. Will the following work?

redirect 301 http://www.patioslingsite.com/products-page/checkout https://www.patioslingsite.com/products-page/checkout


Nov 30th, -0001
Try using .access to redirect.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^http://www.patioslingsite.com/products-page/checkout$ [NC]
RewriteRule ^(.*)$ https://www.patioslingsite.com/products-page/checkout$1 [R=301,L]

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Are you using apache? Create a file called .htaccess in your webroot and copy paste the code above.
Jun 6th, 2013

If you check http://www.patioslingsite.com/ still redirects to https (in Internet Explorer)

Jun 6th, 2013

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^products-page/checkout/?$ https://www.patioslingsite.com/products-page/checkout [R=301,L]

Jun 6th, 2013

Are you studying on the go? Check out our FREE app and post questions on the fly!
Download on the
App Store
...
Nov 30th, -0001
...
Nov 30th, -0001
Dec 3rd, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer