I only want to redirect my checkout page to https

label Programming
account_circle Unassigned
schedule 3 Days
account_balance_wallet $5

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


Oct 21st, 2017
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
...
Oct 21st, 2017
...
Oct 21st, 2017
Oct 22nd, 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