View Full Version : problem linking to document in subdomain
fallingl
10-19-2007, 09:06 PM
In my main domain I can "link to document" and create a link to a map or list in pdf format but when I do the same thing in my subdomain it goes through the dialog box ok and seems to create a link (and looks good when I preview it) but when I visit the site and click on the link I get 404 "Web Page not found" error. The site is www.fallingleavesarttour.com and the subdomain is www.candacehennekens.fallingleavesarttour.com One of the failing links there is "Water colors". Does anyone know why this would happen?
BobBerg
10-19-2007, 09:25 PM
Try using:
candacehennekens.fallingleavesarttour.com/withchazel3.pdf -OR- fallingleavesarttour.com/CandaceHennekens/withchazel3.pdf
instead of:
candacehennekens.fallingleavesarttour.com/CandaceHennekens/withchazel3.pdf
The subdomain is already pointing to the CandaceHennekens directory.
--
fallingl
10-24-2007, 09:38 PM
Thanks for your help.
I tried what you suggested and that didn't work either but you were on the right track.
I used just the document name \witchazel.pdf and it worked (I was already in fallingleavesarttour\CandaceHennekens when I was editing).
All three formats worked when viewed with the preview tab in the HTML Editor.
fallingl
Early Out
10-24-2007, 09:51 PM
I believe you're getting confused about how to reference things when you're working with a subdomain. A few pointers, in no particular order....
Your main domain is http://www.fallingleavesarttour.com. Your subdomain is http://candacehennekens.fallingleavesarttour.com. Note that there is no www on the subdomain.
When you create a subdomain under your main domain, all the files are kept in a folder under your main domain. In this case, that's public_html/candacehennekens. But you shouldn't create links that point to that folder - let the internal redirection take care of it automatically. So, let's say you've got a PDF file at public_html/candacehennekens/whatever.pdf. The URL to access that is http://candacehennekens.fallingleavesarttour.com/whatever.pdf. Note that you don't actually spell out the subfolder location of the file - that's taken care of automatically.
Relative references, as you've discovered, don't need to address this issue at all, of course. But you don't need a leading "/" on them. So, if witchazel.pdf is in the same directory as the page that's calling it, the call is just:
<a href="witchazel.pdf">Click for witchazel</a>
If that file is, instead, stored at public_html/candacehennekens/adobe/witchazel.pdf, and the calling page is directly under the candacehennekens folder, then the link is:
<a href="adobe/witchazel.pdf">Click here for witchazel</a>
Don't use backslashes in URLs. Some servers don't have a problem with that, but others will choke on it.
One other source of confusion - in some places, you refer to witchazel, but in others you've spelled it withchazel!
Basil
10-24-2007, 10:42 PM
I could have sworn I replied to this thread.. maybe I just stayed up waaaay too late last night.
Well, I certainly typed one up. I'm not sure what happened there.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.