You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Justin Pasher <ju...@newmediagateway.com> on 2009/03/13 23:30:54 UTC

Re: [users@httpd] Question about 301 and 302

Chuck.Payne@TravelChannel.com wrote:
> Guys,
>
> I have the following rule in place to move anyone on a mobile device for our URL to another URL
>
> ### Added 022909 By CEP for Mobile Phones/WAP redirect
> #
> RewriteCond %{HTTP_user_agent} ^(DoCoMo|J-PHONE|KDDI|UP.Browser|DDIPOCKET|.*Alcatel.*|.*Amoi.*|.*AMOI.*|.*iPhone.*|.*ASUS.*|.*KDDI.*|.*CDM.*|.*AUDIOVOX.*|.*audio.*|.*BenQ.*|.*Bird.*|.*BIRD.*|.*BlackBerry.*|.*Bleu.*|.*CECT.*|.*Capitel.*|.*DBTEL.*|.*DoCoMo.*|.*Dopod.*|.*dopod.*|.*Eastcom.*|.*Ericsson.*|.*FLY.*|.*Fly.*|.*GPLUS.*|.*GIONEE.*|.*Gradiente.*|.*HPiPAQ.*|.*HTC.*|.*Haier.*|.*HAIER.*|.*HEDY.*|.*Holleycomm.*|.*HUAWEI.*|.*Huawei.*|.*HYUNDAI.*|.*IAC.*|.*INNO.*|.*kejian.*|.*KONKA.*|.*KWC.*|.*kyocera.*|.*LGE.*|.*LG.*|.*LENOVO.*|.*Lenovo.*|.*MOT.*|.*MOTO.*|.*MOTOROLA.*|.*NEC.*|.*NEWGEN.*|.*Nokia.*|.*NOKIA.*|.*PHILIPS.*|.*Philips.*|.*SAMSUNG.*|.*SCH.*|.*SEC.*|.*SGH.*|.*SPH.*|.*SEC.*|.*SGH.*|.*Palm.*|.*Treo.*|.*Panasonic.*|.*Pantech.*|.*PANTECH.*|.*Sanyo.*|.*SAGEM.*|.*SHARP.*|.*SIE.*|.*SoftBank.*|.*Sony.*|.*SonyEricsson.*|.*SKYWORTH.*|.*SPICE.*|.*Spice.*|.*TCL.*|.*Telit.*|.*TIANYU.*|.*utec.*|.*utstar.*|.*UTSTARCOM.*|.*UTStarcom.*|.*ZTE.*|.*ZMEM.*|.*ZMKN.*|.*ZONDA.*|.*i-mate.*|.*i-mobile.*) [NC]
> RewriteRule (.*) http://m.mydomain.com [302]
>
> #
> ### End Mobile Phone/WAP redirects
>
> Our Dev guys are saying that because I am using a 302 that I am breaking IE, I have never heard of IE being broke by 302, should I use 301?
>   

Sounds completely bogus to me. A 301 (moved permanently) versus a 302 
(found) redirect shouldn't break any modern browser. Generally a 301 
redirect is better in regards to search engine related redirects, but 
either should work just fine.

What is the proof that the developer has that shows IE being "broken"?


-- 
Justin Pasher


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