...

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



Bobafart
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:

http://community.foo.com/TVLand

point to this script:

http://www.foo.com/groups/view/index.php?groupName='TVLand'

thanks for all you help!

shyam
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