Guest Posted March 4, 2007 Posted March 4, 2007 (edited) Hi all! I've been sitting all evening here trying to figure out this much discussed shared SSL topic/problem.. While I've managed to get get it working without total failure, it now adds my account username to the store url (http://www.mydomain.com/~mydomain/index.php) when going back to the store from a secure page (https://server.myhost.com/~mydomain/cart.php) for some more shopping. Everything works when browsing in http://www.mydomain.com/~mydomain/ but when I try to go to the shopping cart it throws a page not found. My config looks like this: SSL Root: /home/mydomain/public_html/ SSL URL: https://server.myhost.com/~mydomain (I've tried setting the root to /home/~mydomain/public_html/, /mydomain/public_html/ but the result is the same. I've even left root empty but that didn't seem to change anything ) Any help with this is much appreciated. Update: I've now got shared SSL working and it didn't require any code changes as I feared earlier (read below this post). I used the editconf.php provided by CC and my settings looks like this: $config['rootDir_SSL'] = /home/mydomain/public_html $config['rootRel_SSL'] = /~mydomain/ $config['storeURL_SSL'] = https://server.myhost.com/~mydomain $config['ssl'] = 1 Edited March 11, 2007 by skom_31 Quote
Guest Posted March 5, 2007 Posted March 5, 2007 delete ALL cookies and sessions in your browser specific to your site and also try different browsers as well when testing. Quote
Guest Posted March 9, 2007 Posted March 9, 2007 delete ALL cookies and sessions in your browser specific to your site and also try different browsers as well when testing. That doesn't help unfortunately. The problem is that CC keeps the ~username after the slash when switching to non SSL pages.. Gonna look in CC SSL code and see if I can dig up something. Quote
Guest Posted March 10, 2007 Posted March 10, 2007 After poking around CC code and not finding any solution to my little problem I decided to do some coding and came up with this snippet: if($_SERVER["SERVER_NAME"]=="www.mydomain.com"){ if(strstr($_SERVER["REQUEST_URI"],"~mydomain/")){ $redir = str_replace("~mydomain/","",$_SERVER["REQUEST_URI"]); header("location: ".$redir); } } The code is inserted in the top of the index.php (store root) and it seems to work pretty well but I need to do further testing before I dare making the website public. Any tips, optimization or comments on this is much appreciated as I am a novice php programmer :) Quote
Guest Posted March 11, 2007 Posted March 11, 2007 Now I've done some testing and have found one bug and it's when logging in from "https://server.myhost.com/cart.php?act=step1", when submitting the log in form it throws a 404: Not Found The requested URL /Z[›™[â„¢\ÙKØØ\ ϯXÃ\Ã\ IËœ[\ØØÕ\Ù\Y˜ŽLØXX™ÌØM ™ŽXÙ L ؘ™™ LÃŽ MËœ was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. The URL is https://server.myhost.com/Z[%9B%99[%99\%D9K%D8%D8\%9D%0B%9C%1A%1C%0F%D8X%DD%0F\%DD%19\%0CI%98[\%0E%D8%D8%D5\%D9\%8FY%98%8EL%D8X%8DX%99%18%CC%D8M%0C%99%8EX%D9%0CL%0Cؘ%99%99%0CL%CE%0C%18M%98 This is the only bug I can find and it seems to be the redir-variable that causes it.. This shared SSL thing is killing me :) Quote
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.