Client Support Community Server Status Contact Us Client Login
Email Hosting Website Hosting Reseller Hosting VPS Hosting Dedicated Servers

    Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in


htaccess woes

 
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
welcome2 Reply with quote
 NetHosted Customer

 

 Joined: 05 Jun 2005
 Posts: 122
 Location: sandwell

PostPosted: Fri Jan 26, 2007 3:08 pm    Post subject: htaccess woes
 
I have a domain with addon domains: -
root.com
|
|-/images/
|-/addon1/images/
|
|-/addon2/images/

All 3 domains need to access the images.

What I'm trying to achieve is that addon1.com/images/pic.jpg will actually serve the file from root/images/pic.jpg, without doing an external redirect, same for addon2.

Now, as far as I can see, I could do this
a) with a symlink, but then I can't test locally on Windoze.
b) with a script (eg php) to serve the image.
c) copy the images to each folder when they are uploaded.

The current position is that the images in addon1.com pages are sourced from root.com, which I want to get away from. Option (b) is looking favourite at the moment.
I've been trying to do this in htaccess, but it doesn't seem to be possible, unless I convert the addons to parked domains. As far as I am aware, calls to addon1.com bypass the htaccess in root (from looking at rewrite.log)

Anyone got any other ideas?

Please?

_________________
Jim
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5684
 

PostPosted: Fri Jan 26, 2007 3:18 pm    Post subject:
 
Jim,

The symlink would be the easiest way definitely, do you want me to create that for you?

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
welcome2 Reply with quote
 NetHosted Customer

 

 Joined: 05 Jun 2005
 Posts: 122
 Location: sandwell

PostPosted: Fri Jan 26, 2007 3:28 pm    Post subject:
 
Thanks Andrew, but no - I need to be able to test locally on windoze, as things are still in a state of flux at the moment.
When it's stable, I might take you up on that though - although I believe I can do it through a php script? Need to check the syntax though...

I'll probably go for a php script to echo the image file for now, since it will work on both platforms. I just thought I'd ask for alternative ideas.

_________________
Jim
Back to top
View user's profile Send private message Visit poster's website
Mike T Reply with quote
 Community Liason

 

 Joined: 26 Apr 2004
 Posts: 453
 Location: Loughborough

PostPosted: Fri Jan 26, 2007 5:30 pm    Post subject:
 
welcome2 wrote:
Thanks Andrew, but no - I need to be able to test locally on windoze, as things are still in a state of flux at the moment.
When it's stable, I might take you up on that though - although I believe I can do it through a php script? Need to check the syntax though...

I'll probably go for a php script to echo the image file for now, since it will work on both platforms. I just thought I'd ask for alternative ideas.
Symlinks ('Junction points') for Windoze . Knock yourself out.

Mike
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
welcome2 Reply with quote
 NetHosted Customer

 

 Joined: 05 Jun 2005
 Posts: 122
 Location: sandwell

PostPosted: Fri Jan 26, 2007 6:35 pm    Post subject:
 




Thank you!

_________________
Jim
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: