RES: [PHP] URL redirect or rewrite
| From: | Carlos Henrique | Date: | Wed, 04 Oct 2000 22:22:05 +0000 |
| Subject: | RES: [PHP] URL redirect or rewrite | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18666@lists.php.net to get a copy of this message | ||
Hi there!
This week I'm trying to do this on my site. I use apache and my solution is
using mod_alias which comes with the common apache distribution. But with
Alias directive in apache I cant use ? to pass the variables. If the page
is page.php works all right, if the page is page.php?id=10 doesnt work.
Any ideas to do this in php?
Carlos
> -----Mensagem original-----
> De: Chris Chapman [mailto:chris@focus2.com]
> Enviada em: quarta-feira, 4 de outubro de 2000 18:20
> Para: php-general@lists.php.net
> Assunto: [PHP] URL redirect or rewrite
>
>
> I have a situation where I need to detect a URL such as:
>
> http://www.domain.com/101
>
> and automatically redirect to a different url that requests info from
> another server, such as:
>
> http://www.domain2.com/search?id=101
>
>
> What would you guys suggest that would not interfere with other pages
> requests from the original server, such as:
>
> http://www.domain.com/page.html
>
> Note, changing the url is not an option. It must appear as the first
> example above.
>
> TIA
> cc
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>