Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Mobile device defaults to test.website.com instead of www.website.com

Posted on 2014-03-04
Medium Priority
Last Modified: 2014-03-05
My website is: www.bluestarbussales.com

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

When I do the same on my iPhone, (i.e. input bluestarbussales.com) it defaults to test.bluestarbussales.com - 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 2000 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 http://test.bluestarbussales.com/index-2.html 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.


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 test.bluestarbussales.com

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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

618 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