Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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! :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...