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
  • 4
  • 3
LVL 34

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 34

Expert Comment

by:Dan Craciun
ID: 39906622
Glad I could help!
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.


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 34

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 34

Expert Comment

by:Dan Craciun
ID: 39906755
You're welcome

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Competitors in URL Dropdown 2 58
server DNS address could not be found 22 179
Which browser works with XP 16 172
Add Site to Internet Explorer Compatability View using AutoIt 7 63
I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
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.

805 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