.htaccess
Multi-site compatible apache rewrite rules
When using multi-site configurations in Drupal 4.7, and you want to use URL rewriting in .htaccess to force 'www.' or non-'www.' subdomain access, the rewrite rules used in the standard .htaccess file may be problematic.
# If you want the site to be accessed WITH the www. only, adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]#
# If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^example\.com$ [NC]read more »
Posted by: Mike on Tue, 10/17/2006 at 11:19pm
Tags: .htaccess :: apache :: CMS :: Drupal :: Drupal 4.7 :: Drupal tips and tricks :: mod_rewrite :: multi-site :: rewrite rules
Links: add new comment


Recent comments
2 days 5 hours ago
5 days 12 hours ago
6 days 12 hours ago
6 days 12 hours ago
6 days 16 hours ago
6 days 22 hours ago
1 week 3 days ago
1 week 5 days ago
2 weeks 1 day ago
2 weeks 2 days ago