# This file lives in the SAME directory as the wpirg.org contents. # It is intended for local access. # It is supposed to apply to wpirg.org only # You will need to change the entries to reflect your installation. # Allow CSS files to be parsed by PHP so we don't need to # include huge style sheets in our pages. AddType application/x-httpd-php .css # Turn on rewrite engine RewriteEngine On # I think this makes apache use my home dir as the root, # as opposed to /var/www/ RewriteBase /~USER/SVNWORKDIR # Redirect the homepage because it is special # (It wants to be an external redirect, otherwise a / gets appended to # the end of Home.html . I don't know exactly why.) RewriteRule ^$ home [R] # This should rewrite HTML pages as page.php requests # (But not page.php itself, which is why the first line is in place.) # (also not any css files.) RewriteRule (.*)\.css - [L] RewriteRule page.php - [L] RewriteRule ^([^/]+)$ page.php?pid=pg_$1 [L,R] # Any requests to .inc files should be denied RewriteRule (.*)\.inc$ - [F]