I tried a more simple pairing of www. forcing to see if that would work, but I couldn't get it to work either:
in main htaccess file:
Code:
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
and in /forums htaccess file:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/forums/$1 [L,R=301]
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
What happens in that case is quite weird, it rewrites it to:
Code:
http://www.domain.com/forums//var/chroot/home/content/x/x/x/username/html/forums
(some of that has been masked slightly, but the format is exactly that)
I'd love to get this to work, so any suggestions would be appreciated. If I can't get it to work, I was thinking about deep-sixing all of the htaccess masking for the sitemap data files, can I use a cron job to just move them after they are created into the root directory? If so, which files do i need to move?