PDA

View Full Version : addon sub domain- total beginner



christo
07-13-2008, 07:15 PM
Hello
I have a domain with Bluehost
Added a subdomain (aldo with Bluehost)
Where do I upload the image folder for addon domain?

I created an image folder inside the sub_domain folder but the images dont show up when I open the site.

Pls help!

Early Out
07-13-2008, 08:09 PM
Let's say your primary domain is www.example.com. The files for that should be put in public_html.

Now you've created an addon domain or a subdomain. An addon domain is a separately registered domain, like www.anotherexample.com. A subdomain doesn't have to be registered (i.e., you don't have to pay for it), and its address would be anotherexample.example.com. But whether it's an addon domain or a subdomain, the files end up in the same place: public_html/anotherexample.

Now let's say you've got an index.html sitting in public_html/anotherexample. That will automatically get coughed up when you point a browser to either www.anotherexample.com or anotherexample.example.com. If that index.html needs to call images from an "images" folder, that folder goes to public_html/anotherexample/images.

But calls to those images in the index.html don't refer to the addon or subdomain directory - they're still just relative addresses, which don't change no matter where the index.html is sitting. So, a call to one of the images would still be just:


<img src="images/mydog.jpg">

Bob Barr
07-13-2008, 08:09 PM
Hello
I have a domain with Bluehost
Added a subdomain (aldo with Bluehost)
Where do I upload the image folder for addon domain?

I created an image folder inside the sub_domain folder but the images dont show up when I open the site.

Pls help!
That should work. How are you linking to the images in your HTML?

christo
07-14-2008, 09:43 AM
Thank you very much for replying - early out/

1. with your clarification, then I have an Addon (paid for it) / not a sub-domain
2. put the files in public_htlm/dominiquesilkdreams/index.htlm

The index.htlm file works fine, but without images.

The image folder is also in: public_htlm/dominiquesilkdreams/images/

Code in my index.htlm file for example is: (dreamweaver)

<img src="img2/test.jpg" alt="flower" width="570" height="428" />

That img2 folder I uploaded it in the addon folder inside the main domain folder but is not pulling the image. I named the image folder img2 thinking that there might be a confusion naming the image folder of the main domain and addon the same?!

Would greatly appreciate your input. Thanks!

christo
07-14-2008, 10:00 AM
That should work. How are you linking to the images in your HTML?
But calls to those images in the index.html don't refer to the addon or subdomain directory - they're still just relative addresses, which don't change no matter where the index.html is sitting. So, a call to one of the images would still be just: <img src="images/mydog.jpg">

Maybe I got you wrong by my previous answer. My point is that I don't know where to upload the image folder of the addon domain! I put it inside the addon folder - didn't work, I put it inside Public_htlm - neither...It should be very simple but while I dont get it is still chinese!

Early Out
07-14-2008, 03:06 PM
<img src="img2/test.jpg" alt="flower" width="570" height="428" />
For this to work from the index.html page in dominiquesilkdreams, the test.jpg file has to be here:

public_html/dominiquesilkdreams/img2/test.jpg

However, at least at the moment, there is no such domain as "dominiquesilkdreams.com" (or .net or .org), so until that problem is straightened out, nothing else is going to work.

christo
07-14-2008, 07:32 PM
I do not want to sound negative but that is exactly where it is, i.e...

public_html/dominiquesilkdreams/img2/test.jpg

and, there is a domain dominiquesilkdreams.com (you can try it...it's a test page [ don't mind the code source, it refers to the main domain ]. but it doesn't bring the test.jpg picture)

Thanks for your help,
Christo

christo
07-14-2008, 07:37 PM
actually, the name of the addon site is: http://www.dominique-silk-dreams.com/
and the image folder is located in: public_html/dominiquesilkdreams/img2/test.jpg
Should work, but it doesn't!

felgall
07-14-2008, 07:56 PM
Do you have hotlink protection turned on for your main domain? That would prevent the add-on domain accessing any images unless it is added to the exception list.

Early Out
07-14-2008, 08:00 PM
Yeah, the files are there, but they're returning a "forbidden" message when you try to access them directly. Hotlink protection is, indeed, the most likely cause.

christo
07-15-2008, 07:29 PM
Hotlink protection was indeed the problem!
I've added the addon to the exception list.
What surprised me though, is that there were already a few other links in the exception list which are somehow connected in name with the main domain but have no relation. How did they come about and should I leave or erase them?

Thank you very much guys for your patience.
It makes all the difference with your support.
Best of luck, christo.

JustBrits
02-17-2009, 12:16 PM
Hotlink protection was indeed the problem!
I've added the addon to the exception list.Well folks, I seem to have same problem and I WAS going out-of-my-mind!!!

This IS what is in the "URLs to Allowed Access:" box:
********************
http://bustercluster2006.justbrits.com
http://gentryspringers.justbrits.com
http://illiniahca.justbrits.com
http://justbrits.com
http://sprite-midgetclub.justbrits.com
http://www.bustercluster2006.justbrits.com
http://www.gentryspringers.justbrits.com
http://www.illiniahca.justbrits.com
http://www.justbrits.com
http://illiniahca.org
http://www.illiniahca.org
********************

The FIRST nine (9) entries where the ones automatically installed when I moved to B.H. and automatically added as I had additional sites to host myself.

AFTER I edited/added the bottow TWO (2) entries, the Add-on site began working perfectly!!!

Thought I would add this clarification for future "surfers"
using Google (or whom ever) as that IS how I found this thread and solved my problem!!!

Thanks to all who assisted 'cristo'!!

:D
Ed

Early Out
02-17-2009, 02:02 PM
This rings a bell. If you add any subdomains or addon domains, the hotlink protection doesn't update itself, so you have to do it manually. I think, however, that if you add your new domain, then turn off hotlink protection, then turn it back on again, the routine is smart enough to pick up all of your domains, including the newly-added ones.

JustBrits
02-17-2009, 03:21 PM
If you add any subdomains or addon domains, the hotlink protection doesn't update itself, so you have to do it manually.After STRUGGLING with the problem for DAYS and countless HOURS
"EarlyOut", I can state that YOUR words are GOSPEL !!!

And THIS thread IS how I figured it out!!!!:D:eek::confused::D

Ed