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

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Nov 30th, -0001
...
Nov 30th, -0001
Mar 26th, 2017
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