mobile site redirect

Hia, we have done a mobile website for our client and require some kind of code / script to enable us to have a redirect to the mobile site if mobile device detected.

We have already got some script to do this which directs to the mobile version...BUT when the user clicks to view the main website the redirect kicks in again and automatically shows mobile version again.

so we need to amend the script so that if they do click view main website it doesnt redirect them again to mobile.

the code we used that was to go into the main site header (which works great) was...

<script type="text/javascript">// <![CDATA[

var mobile = (/iphone|ipod|android|blackberry|mini|windows\sce|palm/[url removed, login to view]([url removed, login to view]()));

if (mobile) {

[url removed, login to view] = "URL to mobile site goes here";


// ]]></script>

Compétences : HTML, Javascript

en voir plus : javascript mobile device redirect, test mobile site, test blackberry, redirect site mobile device detected, redirect mobile site javascript, sce, mobile site html, go mobile, mobile html redirect code, android mini, html mobile document, html mobile redirect code, redirect code, mini document, mini android, redirect url code, version mobile, mobile device website, mobile site redirect script, html useragent, html mini, android mobile website, text blackberry, mobile website html redirect, mobile site url

Concernant l'employeur :
( 30 commentaires ) St.Annes, United Kingdom

Nº du projet : #1654781

Décerné à:


can do it very quickly!

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(66 Commentaires)

3 freelance font une offre moyenne de $33 pour ce travail



%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(74 Commentaires)

Lets do it now

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(26 Commentaires)