In previous post ( here ) I have described that how can we redirect all pages of any website from http to https protocol.
In some case you want that only some of the pages to redirect to https but not all pages.
In that case the code in above post will not work hence it will redirect all pages to https.
To redirect only some of the pages you need to use below code in your htaccess file.
From above code in your website only order.php, payment.php and success.php will be redirect to https protocol.
Here I have used RewriteCond with OR condition. If we use OR condition than Rule will be apply if any of the condition gets true. For more detail about OR condition Check here.
Avinash Zala is leading various projects which deals with the various technology involved with the web. A combination of perfect technical and management skills. Avinash would like to chat with you and convert your imagination into the working system. You can get in touch with him on Facebook and Twitter.
View all posts by: Avinash