Mobile device defaults to instead of

Posted on 2014-03-04
Last Modified: 2014-03-05
My website is:

When I enter on my desktop it will put in www. automatically.

When I do the same on my iPhone, (i.e. input it defaults to - Can someone tell me how to fix this?
Question by:Nicholas_BlueStar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 35

Accepted Solution

Dan Craciun earned 500 total points
ID: 39904672
You have this on your page:
<script language=javascript>
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {

Open in new window

Change with the page you want.


Author Comment

ID: 39906617
Dan, you rock! Thanks!
LVL 35

Expert Comment

by:Dan Craciun
ID: 39906622
Glad I could help!
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Author Comment

ID: 39906658

I updated that line of code. I tried it on my phone and it is still re-directing me to the

how can I verify that the code has been updated? Do I need to reset my browser or anything on my iPhone?
LVL 35

Expert Comment

by:Dan Craciun
ID: 39906676
If you're using Safari, you can go to Settings->Safari->Advanced->Website Data->Edit and delete the cache for your page.

Or you could force-kill Safari...

Author Comment

ID: 39906751
that did it! thanks again Dan!
LVL 35

Expert Comment

by:Dan Craciun
ID: 39906755
You're welcome

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem I downloaded the Microsoft Internet Explorer 9 Beta, today, to give it a test drive and maybe write a review for the site, and it failed miserably and got stuck in a crash restart loop. The error message given is as illustrated below i…
It's here again; Microsoft is launching a new version of Internet Explorer: Internet Explorer 9, with noticeable changes on its interface, functions and new tools. As they say on its promotional video: "It's time to play, on a more beautiful web", f…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question