Re: URL redirect or rewrite
| From: | Ron Scott | Date: | Wed, 04 Oct 2000 21:54:19 +0000 |
| Subject: | Re: URL redirect or rewrite | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18663@lists.php.net to get a copy of this message | ||
Today Chris Chapman wrote:
> 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.
>
Try with mod_rewrite if you using apache.
-Ron
--
UNIX was never designed to keep people from doing stupid things, because
that policy would also keep them from doing clever things. (Doug Gwyn)