TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:21519] apache URL problem
Ben Lutgens wrote:
>
> Hi all, I am using apache and would like the addresses rewritten.
>
> When a person types http://www.globalfilesystem.org into thier location bar I
> want the seemlessly directed to http://www.sistina.com/gfs/ and have it show
> up thusly in the location bar. Right now we are using a redirect document as a
> "quick fix" but it's very irritating when you can't back out.
I usually use a .htaccess file. You could do something like
Redirect / http://www.sistina.com/gfs/
which should do the redirection you're looking for. The question
becomes, do you want sub-paths to be automatically redirected as well?
I think this should work as I showed above. Type in
`http://www.globalfilesystem.org/path/to/blah', and I think you will get
redirected to `http://www.sistina.com/gfs/path/to/blah'.
At any rate, you may want/need to set up a nice 404 document, which you
can specify with the `ErrorDocument' directive:
ErrorDocument 404 /gfs/path/to/fourohfour.html
--
_ _ _ _ _ ___ _ _ _ ___ _ _ __ Roads? Where we're
/ \/ \(_)| ' // ._\ / - \(_)/ ./| ' /(__ going, we don't need
\_||_/|_||_|_\\___/ \_-_/|_|\__\|_|_\ __) roads.
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@tc.umn.edu ]