Jump to content

Apache .htacces key issue - Multiple domains on one host


kevin1

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.