Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 02:21:58 AM

Pages: [1]   Go Down
  Print  
Author Topic: Help with 2 domains that share files  (Read 1459 times)
nefi7
Space Explorer
***
Offline Offline

Posts: 9


WWW
« on: October 04, 2004, 08:04:48 AM »

I have moved 2 sites to lunarpages. Site 2 is an addon not a subdomain. They share many of the same images and some files.  Is there an easy way I can incorporate them w/out having the files duplicated on the server(taking up extra space)?  Should I just link to site 1 when designing site 2? And if I do that, will the paths be recognized when uploaded? Does that make sense? I know the answer is so easy I'm just not seeing it! Ner Ner
Any help is appreciated!
Thanks!
Logged
Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #1 on: October 04, 2004, 09:24:36 AM »

You can access your addon from

primarydomain.com/addondir/

So just link to those images as:

primarydomain.com/addondir/image.jpg
Logged

nefi7
Space Explorer
***
Offline Offline

Posts: 9


WWW
« Reply #2 on: October 04, 2004, 10:26:31 AM »

Quote from: Ed
You can access your addon from

primarydomain.com/addondir/

So just link to those images as:

primarydomain.com/addondir/image.jpg


Thanks so much for your quick reply!
I'm sorry but it's not making sense to me Surprised .  Could someone give a little more detailed direction?
I've tried linking site2 images from site one but they won't show up when uploaded. Do I need to do this in lunarpages?  I am looking in the public_html folder, my addon has its own folder(same name as site)  but site 1 is just under public_html folder (w/out folder of its own).
I sound unclear, don't I?  I think I'm just frustrated at this point! Sorry!
Logged
Ed
Berserker Poster
*****
Offline Offline

Posts: 5208



WWW
« Reply #3 on: October 04, 2004, 10:30:12 AM »

Ok so lets call them

pri.com (primary domain
add.com (addon domain

add.com is located in /public_html/add

Say pri.com wants to load an image from add.com

<img src="pri.com/add/image.jpg">
or
<img src="add.com/image.jpg">

Add.com wants to use pri.com's images:

<img src="pri.com/image/jpg">

The only special one is
<img src="pri.com/add/image.jpg">
This will load the image from the primary domain url, but actually accessing the addons content.

Take a look at the link in my signature for more details on the two Smile

- Ed
Logged

Danielle
Guest
« Reply #4 on: October 04, 2004, 10:32:02 AM »

Hi nefi7,

Could you please provide the actual domain names so that we can give examples along with the addon domain folder name?

If you want to place the images into the addon domain folder (which you would need to do if you want both the primary domain and the addon domain to access them), you would use:

http://www.primary.com/addonfoldername/pathtoimage... for the primary domain to access them
http://www.addon.com/pathtoimage for the addon domain to access them.
http://addonfoldername.primary.com/pathtoimage if you wanted to use a subdomain.

To see this, try my site's addon domain skewed3.com on my primary domain bestgarden.net:

http://www.bestgarden.net/skewed3/smilies/ - primary using addon folder
http://www.skewed3.com/smilies/ - addon domain
http://skewed3.bestgarden.net/smilies/ - subdomain off primary using addon folder name

The folder is the same location in Cpanel, but can be linked to using any of the above.

Thanks.
Logged
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #5 on: October 04, 2004, 10:32:20 AM »

Did you look at the Last 300 Errors page? It's under Web stats in cPanel. It could give you a clue on what's going wrong. If you don't understand it, please post the errors here so we can try to interpret them.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #6 on: October 04, 2004, 10:44:22 AM »

Let's see if I can clarify....

An image on site 1 would be something like:
Code:
<img src="/includes/promotion.gif">


To use the same on site 2, you would use something like:
Code:
<img src="http://site1.com/includes/promotion.gif">


Notice how the link on site 2 references site 1. In order for this to work, you will also need to either have hotlinking protection turned off for site 1 or preferably add the domain name for site 2 in the list of approved sites that are allowed to hotlink.

I'm wondering if you have hotlink protection turned on and this is why what you tried didn't work as expected...

Hope this helps
- Marc

EDIT: Okay, looks like someone else made a similar clarification... I really need to not get sidetracked when making replies and get them done faster Smile
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

Turner's Lounge
nefi7
Space Explorer
***
Offline Offline

Posts: 9


WWW
« Reply #7 on: October 04, 2004, 10:45:44 AM »

Wow! Thanks everyone!  I'm going through the replies thoroughly but here is a quick reply.
main site is mirandafinearts.com, addon is patriciamiranda.com
I have only been playing with index of patriciamiranda until I fully understand how to do it.
I'm going to look at the error pages now.
Logged
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #8 on: October 04, 2004, 10:54:19 AM »

Here's something to help... the link to the image on patriciamiranda.com should be:

http://www.mirandafinearts.com/artists/Patriciamiranda/gallery/panel/fibonacci/seed-pod.gif

again, watch out for hotlink protection since both sites will need to be allowed access to the images...

Hope this helps
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

Turner's Lounge
nefi7
Space Explorer
***
Offline Offline

Posts: 9


WWW
« Reply #9 on: October 04, 2004, 11:36:14 AM »

ok, i think i'm wrapping my brain around it!  Hotlink protection is disabled. 1 more dumb dumb dumb question and maybe you'll all have successfully taught me!  I think it is the program i'm using that's causing the problem (lamo namo).  i insert image using mfa.com path and then upload it but it still doesn't work!  When I save before uploading program comes up w/ dialog box asking to save pic and says orig path-mfa.com/etc and then new path-patriciamiranda/etc.
Seems like this may be what is causing the problem (would be happy if it was something besides me!). but i have tried it w/ saving and w/out.
I don't like the program but am in too deep to switch now, maybe when I'm done with everything.  Any recommendations on programs?
Logged
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #10 on: October 04, 2004, 11:37:52 AM »

Please post a link to the problem page. It's possible that the editor is removing the directory information. Dreamweaver has done that to me. Razz

Maybe there's some setting you can try pertaining to absolute/relative image file locations.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
nefi7
Space Explorer
***
Offline Offline

Posts: 9


WWW
« Reply #11 on: October 04, 2004, 11:47:32 AM »

I GOT IT!!! Applause  thanks to everyone! tranzndance you clicked it in my head.  I went into the html and saw that editor took out "http://", the "www" and ".com". Now I see I have to rely on my coding skills and not the wsiwyg!! This is so great!! You all have saved me hours and hours of figuring out what was going on, with all of your suggestions I am now all set - understanding how the domains relate, making sure I have hotlink disabled and that my editor is a pain in the  Question !
I have to say lunarpages is great as a host and now I know the forums are as well! Thanks so much everyone! Rest assured I'll be back with tons more silly questions!
Logged
Acupuncturist
Space Explorer
***
Offline Offline

Posts: 6


« Reply #12 on: April 05, 2011, 01:35:11 PM »

Thanks for all the great info everyone. Just wanted to let you know your help was still doing good out here. My issue was the hotlink protection. After white-listing the appropriate domains, all was good in the world.
Thanks to you all.
 Spot On Spot On Spot On Spot On Spot On Spot On Spot On Spot On
Logged
wilmatan
Intergalactic Cowboy
*****
Offline Offline

Posts: 56



« Reply #13 on: May 03, 2011, 07:45:46 AM »

 Clapping Clapping Clapping

Great job!!! I've learned a lot from the info.   Grinning Grinning Grinning
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: