ENV variables with multiple subdomains - need a rule

Using a single web hosting account to host multiple sites

ENV variables with multiple subdomains - need a rule

Postby wroxbox » Fri May 13, 2005 11:42 pm

Hi!

I need a simple rule to this. I don't want to copy/paste all 17 subdomains like this.

The envs are: SUBDOMAIN, ID and ItemID

# First SUB1
RewriteCond %{HTTP_HOST} SUB1.domain.fi$
RewriteRule ^(.*)?$ /index.php?option=content&task=view&id=85&Itemid=110$1 [P]

# Second SUB2
RewriteCond %{HTTP_HOST} SUB2.kdnuoret.fi$
RewriteRule ^(.*)?$ /index.php?option=content&task=view&id=108&Itemid=111$1 [P]


How can this be done? So I can use [env:sub] etc?

thansk
wroxbox
 

Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 36 guests

cron