fat_dog Posted January 12, 2007 Share Posted January 12, 2007 Hi everyone, For some unknown reason (and I don't think I've done anything to alter it) pages 2,3,4, etc & next link in product pages have switched to https:// links. Does anyone have any suggestions why this might be the case and where I could look to fit it? Has been working fine for ages until recently. Many thanks Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2007 Share Posted January 12, 2007 the catalog\includes\classes\split_page_results.php file builds the links for the multi-pages. Now the code there uses the $request_type variable responsible for identifying the http/https connection. This variable is initialized in catalog\includes\application_top.php There are other discussions in the past which have a different approach to identify the connection so search the general forum for getenv or $request_type you can also try changing the application_top.php // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; to this // set the type of request (secure or not) $request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL'; and see if it makes a difference just backup your file first. Link to comment Share on other sites More sharing options...
fat_dog Posted January 13, 2007 Author Share Posted January 13, 2007 to this // set the type of request (secure or not) $request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL'; and see if it makes a difference just backup your file first. Hi enigma, many thanks for posting. I was using this fix for 1&1 hosting: $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL'; but I guess they have changed something recently which caused it to divert to https on all images and multi pages. I tried your fix above and that works great, so much appreciated! :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.