RE: .htaccess question

From: Gruessle (debian_at_orces.com)
Date: 12/19/03

  • Next message: Kent West: "Re: Wish to network my home computers but don't know Jack about it"
    To: "User Debian-List" <debian-user@lists.debian.org>
    Date: Fri, 19 Dec 2003 14:50:05 -0800
    
    

    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.
    >
    > good times,
    > Vineet

    This is what I found:

         #include <unistd.h>

         int
         symlink(const char *name1, const char *name2);

    Now I am guessing
    I have to put a file in to each directory or do I have to put a file in
    to the "images" directory and it will link all files and sub-directorys?

    What do i call that file?
    index.php maybe?

    What do I enter in to this file?
    This maybe:

    #include <unistd.h>
    int
    symlink(const char *, const char /immages/*);

    I think I am totaly lost now.

    Gruessle

    --
    http://VMCLinks.com
    http://GuyScope.com
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Kent West: "Re: Wish to network my home computers but don't know Jack about it"