Riparian Posted December 7, 2009 Share Posted December 7, 2009 Scenario : I have Comodo SSL setup and working on the site. I can force an single page to use ssl rather than the whole site Problem: Once the ssl page is loaded all other pages from that point onward are using the SSL. I need it for one page only because (and dont let them tell you otherwise) it really slows the site down How can I force the other pages back to http:// ? Any Help is really appreciated ! Cheers Quote Link to comment Share on other sites More sharing options...
Riparian Posted December 8, 2009 Author Share Posted December 8, 2009 Anyone got any clues ? Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 8, 2009 Share Posted December 8, 2009 https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=408 I'm sure there are better resources, even not comodo specific. Use a search engine. Quote Link to comment Share on other sites More sharing options...
Riparian Posted December 8, 2009 Author Share Posted December 8, 2009 As mentioned in the question, forcing the use of ssl is not the problem (a solution is easy to find on a search engine) . The problem is that all subsequent pages will use ssl because of the use of relative addresses. Quote Link to comment Share on other sites More sharing options...
5kyy8lu3 Posted December 8, 2009 Share Posted December 8, 2009 As mentioned in the question, forcing the use of ssl is not the problem (a solution is easy to find on a search engine) . The problem is that all subsequent pages will use ssl because of the use of relative addresses. I'm thinking an IF statement at the top of each page that you DON'T want to be using the ssl certificate would work. i can't remember which server variable gives you the parent document but just check that for http or https. if it's https, use header to redirect them to the same page only without the 's'. i do the same kinda deal to force "www" for session variable consistency. Quote Link to comment Share on other sites More sharing options...
Riparian Posted December 9, 2009 Author Share Posted December 9, 2009 Thank you 5kyy8lu3 for the suggestion. The negative is that I have over 70 individual pages (on the client side only) and I only wish to secure 4 pages (ones with the clients personal details) so it may not be the practical way. Thanks heaps anyway ! Quote Link to comment Share on other sites More sharing options...
mrMarcus Posted December 9, 2009 Share Posted December 9, 2009 put the page names of the pages that are to run on https in an array, do a simple if (in_array ($current_page, $secure_pages)) { redirect to https:// } else { redirect to http:// } you can also use .htaccess/modrewrite to accomplish a similar thing. Quote Link to comment 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.