View Full Version : mod rewrite question using subdomains - help please

01-23-2008, 11:36 AM
Hi, I have created a subdomain:

http://community.foo.com which points to http://www.foo.com/groups/view/index.php

through my hosting service's control panel

now I want to write a script that takes people to their group page.

so if the group name is "TVLand"

I would like to know how to make this URL:


point to this script:


thanks for all you help!

01-23-2008, 12:56 PM
RewriteCond %{HTTP_HOST} ^community\.foo\.com$ [NC]
RewriteRule ^(.*)$ http://www.foo.com/groups/view/index.php?groupName=$1 [R=301,L]

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum