RE: [PHP] All URL's calling one script
| From: | Matt Williams | Date: | Thu, 24 May 2001 14:17:09 +0000 |
| Subject: | RE: [PHP] All URL's calling one script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54221@lists.php.net to get a copy of this message | ||
> Hi All
>
> This is possibly more of an apache/linux question... does anyone
> know a way
> to force ANY url to run ONE PHP script on a virtual server... eg.
> the same
> script is run if a user goes to www.myserver.co.uk or
> www.myserver.co.uk/dfkgjdfl/ or www.myserver.co.uk/hello.htm or
> WHATEVER!!!
> :o)
If you're using apache and have rewrite enable. you could use
RewriteRule ^/(.*) /my_script?rest_of_url=/$1
or just
RewriteRule ^/(.*) /my_script
HTH
M@