No, REQUEST_URI represents the path of the request after the http hostname. You 
want {HTTP_HOST} and it formatted like this:

RewriteCond %{HTTP_HOST} ^(mvideo|wap|mobile)\.mysite\.com$ [NC]
RewriteRule (.*) http://m.mysite.com/$1 [R=301,L]

-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abia...@formatdynamics.com
http://www.formatdynamics.com

From: Charles Payne (Travel Channel) [mailto:chuck.pa...@travelchannel.com] 
Sent: Thursday, February 26, 2009 12:41 PM
To: users@httpd.apache.org
Subject: [us...@httpd] Sorry for a stupid question

Guys,

Sorry been up for 72  hours on cold meds. Can I do following...

RewriteRule %{REQUEST_URI}     mvideo.mysite.com    http://m.mysite.com [NC]
RewriteRule %{REQUEST_URI}     wap.mysite.com        http://m.mysite.com [NC]
RewriteRule %{REQUEST_URI}     mobile.mysite.com    http://m.mysite.com [NC]


Again, sorry for the nood question.


======================
Charles "Chuck" Payne
System Administrator
Travel Channel
3700 Mansell Rd, Suite 500
Alpharetta, GA 30022
www.travelchannel.com
-----------------------
Email:  chuck.pa...@travelchannel.com
Desk Phone:  404-269-5533 (x65533)
Fax Number: 404-269-5461
Blackberry Number:  770-940-7765
Personal Cell: 404-451-3579
aim: terrorp
gtalk: terror...@gmail.com
-----------------------

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to