Re: Template parser
| From: | Paul K Egell-Johnsen | Date: | Tue, 16 Jan 2001 13:45:23 +0000 |
| Subject: | Re: Template parser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34816@lists.php.net to get a copy of this message | ||
Hrishi wrote:
>
> Hello,
>
> Is it possible using apache .htaccess to have every file served from a
> particular domain/directory
> pass through a custom script? or is it necessary to make changes at the root
> level?
RewriteEngine on
RewriteRule ^/(.+) http://newserver/$1 [R,L]
or
RewriteEngine on
RewriteRule ^/(.+) /your/apache/documentroot/admin/index.php
Read more about rewrite here:
http://httpd.apache.org/docs/misc/rewriteguide.html
--
Paul K Egell-Johnsen
Utvikler/PR Manager
eZ systems as
http://ez.no/