This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: redirection to mobile website Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
fabien67
Newbie
Newbie


Joined: 02 May 2011
Location: Canada
Online Status: Offline
Posts: 2
Posted: 02 May 2011 at 3:17pm | IP Logged Quote fabien67

Hello ,

I have a particular problem . i have two websites, one general website ( www.website.com ) and a mobile website ( mobile.website.com)

1) I would like to automatically redirect the user depending of his browser or device. for example, i am an iPhone user who try to connect to www.website.com and i should be redirect on mobile.website.com

2) I would like to let the possibilities to mobile user to consult the general website ( www.website.com ) from his mobile. For exemple : i am an iPhone user who has been redirected on the mobile website, who wants to consult the general website without to be redirect

i have read a lot of different post on your forum , and i found this for my first point:

[ISAPI_Rewrite]

RewriteCond Host: ((?:www\.)?website\.com)
RewriteCond User-Agent: (?:BlackBerry|iPhone|iPod|Android|Opera\sMini)
RewriteRule (.*) http\://mobile.website.com/ [I,R]


but i did not found how to make the second point ?
is it possible to analyse the "http referer" to be able to redirect the user if he comes from mobile.website.com ?
or does someone know how to do this ?

thank your very much

Back to Top View fabien67's Profile Search for other posts by fabien67
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 04 May 2011 at 3:23am | IP Logged Quote Anton

Hello,

Yes, you can analyse referer. Try smth like this:

RewriteCond Referer: .*mobile.website.com.*
RewriteRule (.*) http\://www.website.com$1 [I,RP]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
fabien67
Newbie
Newbie


Joined: 02 May 2011
Location: Canada
Online Status: Offline
Posts: 2
Posted: 04 May 2011 at 8:36am | IP Logged Quote fabien67

thank you for your answer , i will try asap 
Back to Top View fabien67's Profile Search for other posts by fabien67
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum