Re: Re: redirector
| From: | Bob | Date: | Sat, 06 Apr 2002 23:53:56 +0000 |
| Subject: | Re: Re: redirector | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91893@lists.php.net to get a copy of this message | ||
Oh hey, I found this.. It looks like it might be something along the lines
of what you need..
http://www.php.net/manual/en/function.header.php#AEN23288
Now that I look back through the stuff my programmer did that I send
earlier, he uses the header() function.. I just has to be send first and he
tests for that then uses Javascript to redirect if they have it seems..
Anyway, hope this is useful to you..
Later,
Bob Weaver
----- Original Message -----
From: "Joerg Hanke [ML-php]" <ml-php@hanke.hn.org>
To: <phplists@woodenpickle.com>
Sent: Saturday, April 06, 2002 4:20 PM
Subject: AW: [PHP] Re: redirector
> i do not own a server, i just own a virtual host, an ordinary
> webspace... i can't do anything in httpd.conf
>
> -----Ursprüngliche Nachricht-----
> Von: phplists@woodenpickle.com [mailto:phplists@woodenpickle.com]
> Gesendet: Samstag, 06. April 2002 21:30
> An: php-general@lists.php.net
> Betreff: [PHP] Re: redirector
>
>
> First things first, when you say domain.com/home/adam do you mean
> /home/httpd/htdocs/home/adam or /home/adam/public_html.. Once you know
> that you can make a more educated decision.. Either way, you should be
> able to specifiy DocumentRoot /home/adam/public_html or DocumentRoot
> /home/httpd/htdocs/home/adam in your httpd.conf file for <VirtualHost
> adam.domain.com:80>. Unless you are talking about authenticating users
> or something and redirecting specific users to the target and the rest
> somewhere else..
>
> Bob
>
> "Joerg Hanke" <ml-php@hanke.hn.org> wrote in message
> news:002701c1dd9a$69c08010$0400a8c0@Joerg...
> > hi,
> >
> > i've got the possibility to create alias subdomains, which redirect
> > all to the document-root...
> >
> > e.g.:
> >
> > http://adam.domain.com redirects to
> > http://domain.com
> >
> > i want to redirect the users who access
> > http://adam.domain.com to
> > http://domain.com/home/adam
> >
> > how to do this best in php??
> >
> > reguards,
> > george
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>