On Monday 30 June 2008 17:32:07 Michael Vincent van Rantwijk, MultiZilla wrote: > > Oh dear. Apache's dreadful mod_rewrite I just got to master this one day > > soon. > > Note: mod_rewrite works. I've added a few test rules to rewrite > sites/pages but I am still trying to solve the puzzle for the above > rewrite.
Our mod_rewrite rules are pretty complicated right now; here are some snippets
that deal with the templating system that might help with things.
-Doug
RewriteRule .* - [E=MZ_HTTP_HOST:%{HTTP_HOST}]
RewriteCond %{ENV:MZ_HTTP_HOST} ^([^.]+)\.(mozdev|vebzom)\.org(:[0-9]+)?\.?$
[NC]
RewriteRule ^ - [E=VHOST:${lowercase:%1},S=1]
RewriteRule ^ - [E=VHOST:www]
RewriteRule ^/$ /php/index.php?project=%{ENV:VHOST}&page=index.html [L]
RewriteRule ^/(.+\.html?)$ /php/index.php?project=%{ENV:VHOST}&page=$1 [L]
RewriteRule ^(.+/)$ /php/index.php?project=%{ENV:VHOST}&page=$1index.html [L]
RewriteCond %{DOCUMENT_ROOT}/%{ENV:VHOST}/www%{REQUEST_URI} -f
RewriteRule ^(.*)$ /%{ENV:VHOST}/www$1 [L,PT]
--
Douglas E. Warner <[EMAIL PROTECTED]> Site Developer
Mozdev.org http://www.mozdev.org
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Project_owners mailing list [email protected] https://www.mozdev.org/mailman/listinfo/project_owners
