wmh,
Two things come to mind:
1. mod_rewrite is not enabled (run the test in my tutorial Article linked in my signature).
2. Your code requires that the uppercase characters need to be explicitly matched, i.e.,
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.firesafetymart\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9]+)\.firesafetymart\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/?site\.php$
RewriteRule .? site.php?url=%1&path=%{REQUEST_URI} [L,QSA]
To prevent looping, note that I've added an exclusion for site.php AND have simplified the regex and redirection.
Regards,
DK
Bookmarks