Re: .htaccess question
From: Vineet Kumar (vineet_at_doorstop.net)
Date: 12/20/03
- Previous message: panda: "Re: apt-get update and install query"
- In reply to: Gruessle: "RE: .htaccess question"
- Next in thread: Gruessle: "RE: .htaccess question"
- Reply: Gruessle: "RE: .htaccess question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 19 Dec 2003 15:24:06 -0800 To: User Debian-List <debian-user@lists.debian.org>
* Gruessle (debian@orces.com) [031219 14:44]:
>
>
> From: Vineet Kumar [mailto:vineet@doorstop.net]
> > * Gruessle (debian@orces.com) [031219 12:39]:
> > >
> > > I have a lot of large files deep in directories berried
> > > like this:
> > >
> > > http://myserver.com/shop/more/even/more/images/1-999/
> > > http://myserver.com/shop/more/even/more/images/1000-1999/
> > > http://myserver.com/shop/more/even/more/images/2000-2999/
> > > http://myserver.com/shop/more/even/more/images/10000-10999/
> > > etc.
> > >
> > > What I like to do is move those files out to
> > >
> > > http://myserver.com/images/1-999/
> > > http://myserver.com/images/1000-1999/
> > > http://myserver.com/images/2000-2999/
> > > http://myserver.com/images/10000-10999/
> > > etc.
> > >
> > > The problem is that I am running oscommerce and oscommerce gets his
> > > image files from that location.
> > >
> > > Is there a way I can use .htaccess to redirect oscommerce to get the
> > > files from the new location?
> > > If so how?
> > > Or is there a better solution?
> >
> > Don't bother with HTTP redirects. Just use a symlink.
Sorry I confused you. Maybe this will help:
http://newbiedoc.sourceforge.net/general/main-glossary.html#SYMLINK-GLOSS
The basic idea is that you want to create a link to the new directory in
the place that the old directory was. For example, you might do
something like this:
mv shop/even/more/images .
ln -s ../../../images shop/even/more
good times,
Vineet
-- http://www.doorstop.net/ -- http://www.debian.org/
-- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- application/pgp-signature attachment: Digital signature
- Previous message: panda: "Re: apt-get update and install query"
- In reply to: Gruessle: "RE: .htaccess question"
- Next in thread: Gruessle: "RE: .htaccess question"
- Reply: Gruessle: "RE: .htaccess question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]