RE: Sorry for a stupid question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
abiacco@xxxxxxxxxxxxxxxxxx
http://www.formatdynamics.com

From: Charles Payne (Travel Channel) [mailto:chuck.payne@xxxxxxxxxxxxxxxxx] 
Sent: Thursday, February 26, 2009 12:41 PM
To: users@xxxxxxxxxxxxxxxx
Subject:  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.Payne@xxxxxxxxxxxxxxxxx
Desk Phone:  404-269-5533 (x65533)
Fax Number: 404-269-5461
Blackberry Number:  770-940-7765
Personal Cell: 404-451-3579
aim: terrorp
gtalk: terrorpup@xxxxxxxxx
-----------------------

---------------------------------------------------------------------
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-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux