Mobile device defaults to instead of

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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nicholas_BlueStarAuthor Commented:
Dan, you rock! Thanks!
Dan CraciunIT ConsultantCommented:
Glad I could help!
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Nicholas_BlueStarAuthor Commented:

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?
Dan CraciunIT ConsultantCommented:
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...
Nicholas_BlueStarAuthor Commented:
that did it! thanks again Dan!
Dan CraciunIT ConsultantCommented:
You're welcome
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.