Page continues redirecting to mobile site.

I have my website www.jorgeromero.me (I'm still a beginer so please give me opinios on what to improve, thanks)
I have designed a mobile view of my regular site and in the head of the Desktop View site  I placed the following Java Script to redirect to mobile site to devices less than 800 px:
<script type="text/javascript">
<!--
if (screen.width <= 800) {
window.location = "http://www.jorgeromero.me/welcome-to-my-page-mobile/";
//-->
</script>
It works very well in mobile devices, the only thing I've noticed is that when I click "desktop view" to go to the regular site, it will keep redirecting me to the mobile site which makes sense because Java Script is doing what it's been asked for.
I tried placing this code in the head of the mobile site to redirect to the desktop view but it only makes a loop in the browser which also makes sense
<script type="text/javascript">
<!--
if (screen.width >= 800) {
window.location = "http://www.jorgeromero.me";
//-->
</script>
My question is.... what could I do in order to still be able to visit the desktop site when I click "desktop view" in the mobile site.
Thanks a lot in advance for your help!!

Thank you!!  I will definitely try this, thanks a lot for your reply.
When placing the cookie do I have to keep the Java Script redirection code in my mobile site header??
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />

Similar Messages

  • How do i get Safari to stop redirecting to mobile sites?

    Mobile websites are a curse, and IMO was one of the main reasons people didn't use the mobile web before the iPhone. Now with the iPhone you can view the actual web (minus flash, which I would really like to see soon, hint hint), without having to deal with these crippled sites, yet most of them still redirect you to their mobile site.
    Someone please tell me there is a way to get safari on the iPhone to stop redirecting to mobile sites without jailbreaking my phone.

    These redirects are controlled by the websites themseives. They figure out if you are on a mobile phone or not and then redirect you to the mobile version.
    The only way to change that is to look for a link on their site that leads to the full version or write the website webmaster asking them for a link to be added.
    There are other ways as well but those aren't supported by Apple so they can't be discussed here.

  • Redirect to mobile site {subject edited by moderator}

    hello i have a website and a mobile site when i try to upload the mobile site files it ask to over write the main website files ?help in cs6

    You can do this with javascript on the main site's default page -
    <script type="text/javascript">
    if (screen.width <= 730) {
      window.location = "http://www.example.com/m";
    var ua = navigator.userAgent.toLowerCase();
    var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
    if(isAndroid && screen.width <= 730) {
      // Do something!
      // Redirect to Android-site?
      window.location = 'http://www.example.com/m';
    </script>
    If either of those tests return true, the user is redirected to the default page in the "m" subdirectory which would be where your mobile site and its dependent files are located.

  • Redirecting to mobile sites

    How do I get safari to go to the site I type in, instead of redirecting me to the worthless mobile site?

    It's not Safari redirecting you; it's the website itself. The site can detect you're using a mobile browser and will automatically redirect you to their mobile site. They do sometimes provide a link to load the normal site, which is usually located somewhere near the bottom of the page. Be aware the regular site is usually much more graphic-intense, slower to load, and therefore more costly depending on your data plan/usage.

  • How to stop Ipad from redirecting to mobile site using htaccess?

    I have an htaccess file that redirects well and includes a cookie to allow users to go back to the full site. How do I remove an ipad from it so that it isn't redirected to the mobile site? My website is kyneurosurgery.com and my htaccess code is below:
    RewriteEngine on
    RewriteBase /
    # Check if this is the noredirect query string
    RewriteCond %{QUERY_STRING} (^|&)m=0(&|$)
    # Set a cookie, and skip the next rule
    RewriteRule ^ - [CO=mredir:0:www.kyneurosurgery.com]
    RewriteCond %{HTTP:x-wap-profile} !^$ [OR]
    RewriteCond %{HTTP:Profile}       !^$ [OR]
    RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT}  "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "up.browser|up.link|windowssce|iemobile|mini|mmp" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC]
    RewriteCond %{HTTP_USER_AGENT} "iPad"[NC]
    RewriteCond %{HTTP_USER_AGENT} !macintosh [NC]
    # Check if we're not already on the mobile site
    RewriteCond %{HTTP_HOST}          !^m\.
    # Can not read and write cookie in same request, must duplicate condition
    RewriteCond %{QUERY_STRING} !(^|&)m=0(&|$)
    # Check to make sure we haven't set the cookie before
    RewriteCond %{HTTP_COOKIE}        !^.*mredir=0.*$ [NC]
    # Now redirect to the mobile site
    RewriteRule ^ http://m.kyneurosurgery.com [R,L]

    As a note, you can double tap the Home button and select the iPod app as that is what I'm doing now. It's not intuitive and you would think if you select Done you'd go back to the folder list in the iPod app.
    GM

  • When i browse a genuine web page, it redirects to unwanted sites should i disable java

    When i browse, randomly, (in the avast web page checker shows it as good with green mark) the browser it self redirects to unwanted adult site, and when i close click the next time, i get the original page. When i browse through the firefox history, it gives index index and then redirects to the page. It is sheer unwanted browser.
    http://a1r25k1nuc5mj5m1wdv7prp.bioderma.name.tr/index.php?j=YndpcWF2PXZ3YmZnanJqJnRpbWU9MTMxMjEyMDYwOC03MjM3NTQzODMmc3JjPTMzNiZzdXJsPWhlbHAubG9ja2VyZ25vbWUuY29tJnNwb3J0PTgwJmtleT05N0NGNjc0QiZzdXJpPS9vZmZpY2UvbWFrZS10ZXh0LXNjcm9sbC1hdXRvbWF0aWNhbGx5LXdvcmQtcG93ZXJwb2ludC0tZnRvcGljdDEwMDc4NjMuaHRtbA==
    similary some index file entries then the unwanted site. i have immediately disabled java RE.
    Is this enough? or is there permanent solution.

    Interestingly enough, I had the same thing happen '''today''' when I clicked on a search result in Google. It hijacked my request and redirected me to this same bioderma(.)name(.)tr server. It only happened once though, and I cannot seem to reproduce it.
    May I ask what kind of plugins you are using? And most importantly, what DNS provider are you using. (That is, do you happen to be using OpenDNS?)
    You can test it here (it will show a checkmark): http://welcome.opendns.com
    I don't have Java enabled, never did.

  • Mobile devices not redirecting to Mobile Site

    I've trawled through all other discussions covering this topic and checked that all files and scripts have uploaded correctly (I used the Muse uploader to ftp the site).  The site is hosted with HostGator reseller hosting.
    Everything seems to be okay but phones are still displaying the desktop version of the site.
    http://www.bellbuilding.com.au
    Any help would be greatly appreciated.

    Hi,
    I tested on a Samsung Galaxy S4 and the site redirected to the /phone/index.html just fine.
    Could you confirm what device are you seeing the Desktop version on? Also, try clearing browser cache/data on the device, if that helps.
    Cheers,
    Vikas

  • When I try to open some web sites i am blocked by MOZILLA and redirected to a site I did not want and am unable to close or go back without going back to the home page. Help help help

    I have removed the check from the pop up blocked in the MOZILLA options but still get this problem of not being able to open certain sites. The MOZILLA icon appears with the three options available, but before i can click on one I am automatically redirected to a site I did not want, and when I try to go back it will keep coming back to the site MOZILLA put on the computer. I have to close and go back to the home page and start all over again. I have installed a new virus protection system STOPZILLA and could this have any bearing on the problem. After awhile it becomes very frustrating trying to get on line information and being continually redirected. Any ideas?

    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Redirecting between a desktop-browser site and a mobile site

    My company is inheriting a site built by another party in CQ5. This site is intended to be viewed on a desktop browser. We are tasked with building a mobile site for it. Our creative department would like the user's browser to be detected, and if the user requests a page on the desktop site from a mobile browser, they would be redirected to the mobile site. Is there any way to do this on the server side without disabling caching on the site?

    true
    nevertheless, you need it in places for uncached requests. additionally you have the options of:
    - javascript redirect (allows you to build an "opt-out" for the user, i.e. the user wants to stay on desktop regardless of mobile device, via cookie)
    <script language=javascript>
    <!--
    if (navigator.userAgent.match(/mobile/i))
       location.replace("http://mobile.myurl.com");
    -->
    </script>
    - apache configuration redirect
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} ^.*(mobile).*$ [NC]
    RewriteRule ^$ http://m.example.com/ [L,R=302]
    </IfModule>
    dom.

  • I am in Mexico, but do not want pages like google or yahoo to redirect to .mx sites. How do I make this stop happening?

    I am in Mexico, and pages like google or yahoo redirect to .mx sites. I would like to know how to keep them from redirecting, to stay at google.com / yahoo.com

    The problem is that what you are asking for is something you know you aren't going to get - specifically the
    I would also like Apple to provide a projected timeline for these fixes. Not a commitment, just a projected time-line.
    You know that is not how Apple do business - ever. While it's entirely possible they will ultimately meet your wishes in terms of the fixes, updates and added features, it won't be part of a 'deal' but just because they will continue to roll out their product plan as if nothing had ever happened.
    On the other hand, I have to say that I agree entirely. Much could and should be achieved simply by building on the platform and advancing it. It isn't an unreasonable wish to see that happen and to know it will happen. Just not Apple's way to tell anyone.

  • Mobile site pages "noindex" ?

    I've built a separate mobile site just for use with smartphones. When a smartphone device is detected by java script it redirects the user to the mobile site. Compared to the desktop/tablet version, the mobile site has fewer pages, less content/images and is optimized to work on a smartphone.  My question relates indexing of these mobile only pages?  Should I restrict the search engines from indexing these mobile only pages using  or using the admin panel checkbox to "exclude from Search Results"? Any thoughts on how to treat "mobile only pages" with regards to indexing?  Thanks!

    Liam,   Not sure what you mean "May I ask why you not looked at the BC built in stuff for this with the templates, custom pages and the system tags for this?"  It's not obvious to me that there's one best approach to mobile sites in BC.  Could you explain what you mean or point me in that direction?   Frankly, I have a hard time keeping up with what's new in BC, what actually works and in some cases how to use it.  I've recently started using Kiyuco to help expand my BC knowledge.  Any other suggestions are certainly welcome.  Thanks

  • IWeb, mobile sites, redirection...

    I'm working on this website http://www.davidpaulcarr.com using iWeb.
    I have also been playing with making a separate site for mobile devices which can be seen here http://davidpaulcarr.wayma.com .
    The idea, ultimately, is to add .3gp "light" versions of the flash content that is on the main website to a mobile one so that visitors using devices unable to use flash can access at least some of the main content (I hope that's clear!).
    There are various things I would like to do -
    1) Redirect visitors using mobile devices to a separate site adapted to their needs.
    2) Not use wayma.com (or a similar service) to make this mobile website - the functions are very limited, the default font is ugly and I can't get it to echo the design of the main website. Ideally, I would build the mobile site myself, using iWeb again.
    My questions -
    1) How to redirect visitors using mobile devices ? (I posted recently on a similar topic, followed up the leads but didn't get anything that worked).
    2) Is it possible to make a mobile site myself in iWeb and host it on my server? I suppose there are optimal page and font sizes, for a start...
    Any advice will be gratefully received. Please bear in mind that I have limited html skills, slowly learning what I need as I go along...

    Thanks for your reply!
    I was familiar with that thread and had added the Chris Bailey (modified) code to the appropriate page.
    I then - on the basis that my iPod touch would be recognized the same way as an iPhone (which I don't posess) - accessed the page but was not redirected, so I assumed the code wasn't working.
    Perhaps accessing from an iPod Touch isn't the same as accessing from an iPhone, I don't know...
    Anyway, I think I'm looking for a more global redirection solution that would work for smartphones, Blackberrys, anything with a big enough screen to usefully view my content...
    Any ideas about page size and fonts ? (and more generally whether I can use iWeb to cobble together a mobile website)...

  • I keep being redirected to mobile versions of most sites even though I'm using my desktop...Help!

    For some reason recently, my computer has decided that I'm always using a mobile device and I keep getting redirected to mobile versions of websites. I do use my phone to broadcast a wifi hotspot but I had been using it for months with no issue to the webpages until just a few weeks ago. Most times I can go to the bottom of the page and change it back to desktop but it never keeps it that way. I have run into the issue with my yahoo and aol mail where the mail page won't load at all so I can't change it to desktop nor can I see my mail. I can't figure out how to stop this from happening and it's becoming increasingly frustrating to not be able to view my mail on my computer. Any help would be greatly appreciated.

    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Can I avoid being redirected to "mobile" web sites?

    Whenever I go on sites like CNN or, lately espn, I am automatically redirected to their mobile site instead. This is not what I want. Can I stop it??

    I see the mod's been busy on this thread. I hope we're allowed to post links? Here's your link to the CNN.com non-mobile site:
    http://www.CNN.com/index.html
    It could be useful if someone would put together a list of links such as this on a website some place for the most popular sites. Or it could be a legitimate iPhone update that people want to be able to disable the auto redirect beause they feel they have enough speed and bandwidth, or otherwise prefer the regular site
    I tried using Google to search for the link but wasn't very successful. Why don't you guys post some feedback to your friendly Apple support on the subject?
    PS: If your guys are going to charge you for mobile site access, I have a hard time believing they're not going to nickel and dime you for data downloaded for regular sites. Do you have unlimited Internet through your provider? But I guess that's beside the point. Basically, if you don't want to rely on external sources for getting your links, you will have to pay your provider the $36 a year for mobile site access so you can get to the sites you want easily, until Apple upgrades the phone or someone writes an App. Heck, there may be one out there already! You do like your phone otherwise, don't you?

  • Mobile Site and System Pages

    I know you can create a separate mobile website for tablets and phone. I will be doing this for a site I am building that has content specifically targeted for iPad devices. The question I have though is how are system generated pages handled? For instance the eCommerce pages and shopping cart pages.
    How do I create tablet specific pages for system generated pages?
    Thank You!

    Using Muse, I was wondering if there is a way to convert a website that is already built into a mobile website. I have no idea how the website was originally built. My client is asking me to build a mobile site for his current site without touching his desktop site. His site was originally built in Dreamweaver I think but he have no way of finding the files and lost contact with his original designer. We don't want to start a new site from scratch with a new domain because he is afraid of losing his seo work.
    In other words. My client site was build in Dreamweaver or something else. I am not a programer and was going to use muse to make his mobile site. So the question is how do I link a muse made mobile site to his desktop site?
    Thank you.

Maybe you are looking for