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
[email protected]
http://www.formatdynamics.com
From: Charles Payne (Travel Channel) [mailto:[email protected]]
Sent: Thursday, February 26, 2009 12:41 PM
To: [email protected]
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: [email protected]
Desk Phone: 404-269-5533 (x65533)
Fax Number: 404-269-5461
Blackberry Number: 770-940-7765
Personal Cell: 404-451-3579
aim: terrorp
gtalk: [email protected]
-----------------------
---------------------------------------------------------------------
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: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]