Re: vectoring/switchyard php file
| From: | Joe Webster | Date: | Fri, 15 Mar 2002 00:36:03 +0000 |
| Subject: | Re: vectoring/switchyard php file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88598@lists.php.net to get a copy of this message | ||
RewriteRule ^([[:digit:]]+)(/*)$ /__obj.php\?id\=$1 [QSA]
We use this rule to rewrite
/1234
to become
__obj.php?id=1234
and pass and Query String Arguments (QSA) like ?foo=bar and so on.
-Joe
"Dennis Gearon" <gearond@cvc.net> wrote in message
news:3C913126.4A95DC8C@cvc.net...
> I seem to be getting closer to finding out how to make all requests for
> html,php,etc go through ONE particular file, and then do content
> management via that file and permissions. It involves 'mod_rewrite' in
> Apache.
>
> Whoa! What a learning curve for the module, though!
>
> So, before I start, I want to make sure it is what I want. Does anybody
> have experience in using 'mod_rewrite' and can answer this question?
>
> Does all the cookie, post, and get varibles plus all headers get
> preserved in a 'mod_rewrite' action?
> --
>
> If You want to buy computer parts, see the reviews at:
> http://www.cnet.com/
> **OR EVEN BETTER COMPILATIONS**!!
> http://sysopt.earthweb.com/userreviews/products/