I use my main domain for my vbsite. In addition to that domain I have several subdomains that as well that do NOT have vb installations on them, nor do they use vbSEO.
However- I cannot get my subdomains to WORK due to vbSEO UNLESS I add this in the .htaccess file:
Code:RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap) RewriteCond %{HTTP_HOST} !^www\.budget101\.com RewriteCond %{HTTP_HOST} !^subdomain2\.budget101\.com RewriteCond %{HTTP_HOST} !^subdomain3\.budget101\.com RewriteCond %{HTTP_HOST} !^kitchenmixgifts\.budget101\.com RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
With the above code in the .htaccess- the subdomains show- However- it creates the following errors in the Site Error Logs:
2012-01-15 13:14:36.858 [INFO] [97.93.222.177:60197-14#APVH_kitchenmixgifts.budget101.com] File not found [/home/b101/public_html/KitchenMixGifts/vbseo.php]
2012-01-15 13:14:36.851 [INFO] [97.93.222.177:60198-13#APVH_kitchenmixgifts.budget101.com] File not found [/home/b101/public_html/KitchenMixGifts/404.shtml]
2012-01-15 13:14:36.851 [INFO] [97.93.222.177:60198-13#APVH_kitchenmixgifts.budget101.com] File not found [/home/b101/public_html/KitchenMixGifts/vbseo.php]
2012-01-15 13:14:36.829 [INFO] [97.93.222.177:60196-13#APVH_kitchenmixgifts.budget101.com] File not found [/home/b101/public_html/KitchenMixGifts/404.shtml]
2012-01-15 13:14:36.829 [INFO] [97.93.222.177:60196-13#APVH_kitchenmixgifts.budget101.com] File not found [/home/b101/public_html/KitchenMixGifts/vbseo.php]
So how do I get my subdomains to show properly without requiring vbSEO files in the root of their folders??
If I remove the rewrite conditions:
Those particular subdomains are no longer accessible.Code:RewriteCond %{HTTP_HOST} !^subdomain2\.budget101\.com RewriteCond %{HTTP_HOST} !^subdomain3\.budget101\.com RewriteCond %{HTTP_HOST} !^kitchenmixgifts\.budget101\.com


LinkBack URL
About LinkBacks





Reply With Quote