kevin1 Posted October 15, 2008 Share Posted October 15, 2008 Hi, I've a forum website which requires a .htaccess key for several different functions. I've just purchased 8 other domain names which I plan to host on the same server. Unfortunately my .htaccess key is prohibiting this. Only when I remove the key do my other domains work. I created the directorys per my vendor instruction my original domain is alread at the root, then my directories are as follows / /hfcom /hfnet /hforg etc.... This is my key # Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron) RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA] I've tried everything all morning and I can't get my other domains to function with this key at the root of my host. Thank you for any help Quote Link to comment Share on other sites More sharing options...
kevin1 Posted October 15, 2008 Author Share Posted October 15, 2008 Thank you for moving my post. Sorry to post in wrong area. Quote Link to comment Share on other sites More sharing options...
trq Posted October 15, 2008 Share Posted October 15, 2008 I suggest you move your original domain into another directory within your root. .htaccess files affect the current directory and any child directories, so if you move your original domain (and its .htaccess) into a child of your root directory the other directories will no longer be affected by these .htaccess rules. Quote Link to comment Share on other sites More sharing options...
kevin1 Posted October 15, 2008 Author Share Posted October 15, 2008 If I do this, I'd have to re-code all the scripts. My entire website is vbulletin. vbulletin cmps is the /index.php. vbulletin forum is /forum/index.php and I have a ton of customizations. Is there no other way to add something to the htaccess? Thank you for your help. Quote Link to comment Share on other sites More sharing options...
kevin1 Posted October 15, 2008 Author Share Posted October 15, 2008 I'm guessing there's no other options? This makes no sense. If I remove the htaccess file, everything works. When I put it back, only my original domain works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.