TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:21519] apache URL problem
--- 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@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@mn-linux.org
> For additional commands, e-mail: tclug-list-help@mn-linux.org
>
--
Scott Dier <dieman@ringworld.org> #nicnac@efnet
http://www.ringworld.org/ finger:dieman@destiny.ringworld.org
PGP signature