![]() |
.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. |
Check this: http://network.zoints.com/showthread.php?t=30. Maybe it could be helpfull.
|
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 |
All times are GMT. The time now is 03:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|