Topic: redirection to mobile website
|

|
| Author |
|
fabien67 Newbie

Joined: 02 May 2011 Location: Canada
Online Status: Offline Posts: 2
|
| Posted: 02 May 2011 at 3:17pm | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 04 May 2011 at 3:23am | IP Logged
|
|
|
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
Online Status: Offline Posts: 2
|
| Posted: 04 May 2011 at 8:36am | IP Logged
|
|
|
thank you for your answer , i will try asap
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|