Results 1 to 2 of 2
Hi There, is this possible?
I have pared this question down to the bare essentials
I have a web application in folder:
Code:
/home/library/webapp/[files are here]
Now, I want to ...
- 06-14-2009 #1Just Joined!
- Join Date
- Apr 2003
- Posts
- 52
urgent request for help - symbolic links
Hi There, is this possible?
I have pared this question down to the bare essentials
I have a web application in folder:
Now, I want to symbolically link to this in two different placesCode:/home/library/webapp/[files are here]
HERE IS THE PROBLEM:Code:cd /home/site1 ln -s /home/library/webapp webapp //this way /home/site1/webapp is actually a symbolic link cd /home/site2 ln -s /home/library/webapp webapp //now site2 also has the webapp
in both site1 and site2, I have an images folder:
which will contain different imagesCode:/home/site1/images /home/site2/images
however when I try this:
it does not work - because the symbolic link is registered absolutely vs. relatively (I think based on what I'm seeing).Code:cd /home/library/webapp ln -s ../images images
So IOW, both site1 and site2 have the webapp, but in both sites:
both link toCode:/home/site1/webapp/images /home/site2/webapp/images
BOTTOM LINE FINALLY (and thank you for reading this carefully): Is there any way to make a symbolic link "relative" like this so that:Code:/home/library/webapp/images
Code:/home/site1/webapp/images -> /home/site1/images /home/site2/webapp/images -> /home/site2/images
???
- 06-15-2009 #2Just Joined!
- Join Date
- Jun 2009
- Posts
- 2
try using diferents folder for images1
Then you can adda an htacces for each app read from images1 or images2
something like
one for one app and other for the other app
rewrite rule images/(.*) images1/$1


Reply With Quote