--- cut here/ index.php --- <?php header("location: http://www.sistina.com/gfs/"); exit; ?> -- cut here / index.php -- Thats one way to do it, I think apache has a Header module too. You can probally do it like this in a shell script --- cut here / some shell script --- #!/usr/bin/tcsh echo "Content-type: text/html" echo "location: http://www.sistina.com/gfs/" echo "" --- cut here --- Actually, the last one works great, see http://www.ringworld.org/~dieman/cgi-bin/test.cgi * Ben Lutgens <blutgens at usinternet.com> [000921 13:40]: > 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. > > What I am trying is the following in my httpd.conf with the mod_rewrite > RewriteEngine on > RewriteLog "/var/log/apache/rewrite.log" > RewriteLogLevel 1 > > RewriteCond %{HTTP_HOST} !^www\.globalfilesystem\.org\ [NC] > RewriteCond %{HTTP_HOST} !^$ > RewriteRule ^/(.*) http://www.sistina.com/gfs/ [L,R] > > The docs on the apache.org and the modules' website are sketchy and I am not > very good with regexps. If someone has done this before I cauold sure use a > few pointers. Thanks. > -- > Ben Lutgens Work: 612.379.5941 Cell: 612.670.4789 Home: 651.703.9541 > Systems Administrator Sistina Software Inc. http://www.globalfilesystem.org/ > > Internet Explorer (n): Another bug, that is, a feature that can't be turned > off, in Windows. See also: monopoly. > ------------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org > For additional commands, e-mail: tclug-list-help at mn-linux.org > -- Scott Dier <dieman at ringworld.org> #nicnac at efnet http://www.ringworld.org/ finger:dieman at destiny.ringworld.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 233 bytes Desc: not available Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20000921/3de972d0/attachment.pgp -------------- next part -------------- --------------------------------------------------------------------- To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org For additional commands, e-mail: tclug-list-help at mn-linux.org