crippen Posted January 24, 2006 Posted January 24, 2006 Hi, I am a bit confused about how to use the Shared SSL path with my account. My site domain name can be found here: http://crippenlandru.biz/ If you click on 'McCone Files' it takes you to the page books.php?bookID=2 http://crippenlandru.biz/books.php?bookID=2 The problem I am running into is the same /books.php link fails for some reason when I try and use the shared ssl URL. So if you go to https://server382.tchmachines.com/~crippen/ you get the same home page as you would going to http://crippenlandru.biz/, but when you click on 'McCone Files' ... the URL is not found. It seems the "/~crippen" part gets taken out of the URL. If I go directly to https://server382.tchmachines.com/~crippen/...ks.php?bookID=2 then there is no problem getting to the page, but the images don't work because, again, the "/~crippen" part is removed from the URL. My question, is this just a limitation of using shared SSL I have to work with? Must I hard-code "https://server382.tchmachines.com/~crippen/" into any path I want to use the shared SSL with? Or is there any way to set things so that the same relative links that work for my domain name will also work when using the shared SSL URL? Quote
TCH-Andy Posted January 24, 2006 Posted January 24, 2006 It is because you are using absolute links without the domain name. ie. Your link to 'McCone Files' is >href="/books.php?bookID=2" Hence, if you are using the server name - it tries to go to https://server382.tchmachines.com/books.php?bookID=2. If you just used the link without the initial slash, ie; >href="books.php?bookID=2" then it will append this to the current path, and should correctly go to; https://server382.tchmachines.com/~crippen/books.php?bookID=2. Quote
crippen Posted January 25, 2006 Author Posted January 25, 2006 Thanks Andy. I am still a bit confused as to why the / would cause the ~crippen to get taken out of the ssl url ... but that's ok, I'm glad to get it working now. I haven't heard of the / making a difference before! 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.