The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
.htaccess Redirection from WWW to Subdomain
When I created a subdomain for my forums, the directory was created under public_html - thereby enabling access to the folder through both subdomain.domain.com and domain.com/subdomain. I don't want the latter to be possible. I'm trying to figure out how to use .htaccess and mod_rewrite to redirect users who try access the forum that way over to the actual subdomain.
Ex: User 1 loads domain.com/subdomain/rules.php - User 1 is then redirected to subdomain.domain.com/rules.php. Thanks for the help guys. |
#2
|
||||
|
||||
Check this: http://network.zoints.com/showthread.php?t=30. Maybe it could be helpfull.
|
#3
|
||||
|
||||
My hosting support figured it out. I'll save anyone with a headache from this and post it up. This needs to go in your forum directory's .htaccess.
Code:
RewriteEngine On RewriteCond %{HTTP_HOST} domain.com RewriteCond %{REQUEST_URI} ^/subdomain/(.*)$ RewriteRule .* http://subdomain.domain.com/%1 [R] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|