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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: redirection to mobile website
Author
Message |
fabien67
Newbie


Joined: 02 May 2011
Location: Canada
Posts: 2
Posted: 02 May 2011 at 3:17pm

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 04 May 2011 at 3:23am

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
 
fabien67
Newbie


Joined: 02 May 2011
Location: Canada
Posts: 2
Posted: 04 May 2011 at 8:36am

thank you for your answer , i will try asap 
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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