| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jun 2006 Location: Everywhere
Posts: 1,432
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | htaccess help Gents IS this the correct code to put into an htacess file to do a 301 redirect so that all iphone traffic will redirect to url.ext for example and keep the affiliate code? RewriteCond %{HTTP_USER_AGENT} ^.*iphone.*$ [NC] RewriteRule ^(.*)$ http:/url.ext/?code=000&code=000 [R=301,L] ?code=000&code=000 is the affiliate code Thanks in advance
__________________ The speed of light is faster than sound that's why some people appear bright until they open their mouths
Last edited by newton; 11-04-2009 at 02:12 PM.
|
| | |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: Jun 2006 Location: Everywhere
Posts: 1,432
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks for replying kbm and no I don't on this particular server, so I thought that by editing the htacess there would not be a problem redirecting certain types of traffic to different sites with different affiliate codes. Is this not going to work how I have set it out above?
__________________ The speed of light is faster than sound that's why some people appear bright until they open their mouths |
| | |
| | #6 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,963
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I have not tested your code but it looks OK at first glance. Did you try it ? If it doesn't work I will test on my server.
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| | |
| | THREAD STARTER #7 (permalink) |
| Senior Member Join Date: Jun 2006 Location: Everywhere
Posts: 1,432
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks for replying to me sdsinc It seems to work fine on my server and if it is not too much trouble, I would very much appreciate you trying it on yours too please. I just need a double check for my peace of mind. Thanks
__________________ The speed of light is faster than sound that's why some people appear bright until they open their mouths |
| | |
| | #8 (permalink) |
| NamePros Regular Join Date: Jul 2008 Location: Wichita, KS
Posts: 287
![]() ![]() ![]() ![]() | Worked fine for me. Use Code: RewriteCond %{HTTP_USER_AGENT} ip(hone|od) [NC]
RewriteRule ^.* http:/url.ext/?code=000&code=000 [R=301,L]
__________________ Free Services: Alertable.com, DetectMobileBrowser.com, DropCart.com, FreeCronJobs.com, HTMLDTD.com, ImagePNG.com, NoCart.com, phpMyLogin.com, RandomTweeps.com, SearchFriendlyURLs.com For Sale: Keyword Domains / Generics See Also:: Google Voice Add-on for Firefox, Google Wave Add-on for Firefox |
| | |
| | THREAD STARTER #9 (permalink) |
| Senior Member Join Date: Jun 2006 Location: Everywhere
Posts: 1,432
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Many thanks chadsmith I bought Andy Moore's script awhile back and am using that also, but I was looking an htacess way of doing this as a standalone too.
__________________ The speed of light is faster than sound that's why some people appear bright until they open their mouths |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |