Re: php invocation
| From: | Brad Pauly | Date: | Wed, 16 Apr 2003 16:15:55 +0000 |
| Subject: | Re: php invocation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144141@lists.php.net to get a copy of this message | ||
Alexei Matveev wrote:
Is it possible to translateIf you are using Apache as your web server, you could use mod_rewrite to do this. http://httpd.apache.org/docs/mod/mod_rewrite.html If you wanted to direct everything through script.php, I think the rule would be something like (probably not correct): RewriteRule ^/(.*)$ /script.php?page=$1 Which would translate a request for /page1.html into: /script.php?page=page1.html Bradurlpath/page1.htmlinto a call to php script with page1.html as an argument? If yes, how?