I need something very similar
non-www to www, with subdirectory support.
What I have redirects remodelcrazy.com to www.remodelcrazy.com
but not
remodelcrazy.com/forum to www.remodelcrazy.com/forum
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.remodelcrazy\.com$ [NC]
RewriteRule ^(.*)$ http://www.remodelcrazy.com/$1 [R=301,L]
There is an htaccess file in /forum but this is all it contains (rewrite for a sitemap plugin). It seems no matter what I put in there it does nothing.
Code:
RewriteEngine On
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
Last edited by chrishirst; 09-09-2009 at 05:15 AM..
Reason: live links broken
|