RE: [PHP] Re: How to pass variables to php functions from url's?
| From: | Martin Lindhe | Date: | Fri, 07 Sep 2001 11:32:34 +0000 |
| Subject: | RE: [PHP] Re: How to pass variables to php functions from url's? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66380@lists.php.net to get a copy of this message | ||
> Hi Martin,
>
> Take a look at the Apache mod_rewrite docs.
>
> http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
Thanks alot!
I made a similar solution which works
RewriteEngine on
RewriteRule "^/x/(.*)" "http://www.server2.com/users/$1"
takes www.server1.com/x/martin to www.server2.com/users/martin
Great! I'm also wondering wether i can hide this redirect, as of
now the redirected url is shown to the user, but i want this
redirect to be unknown, so user is visually on same server.
I figure i can solve this with a little script & a frame or something,
but it's not a good solution, is it possible to do in any other way?
/Martin