• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

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

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?
0
Nicholas_BlueStar
Asked:
Nicholas_BlueStar
  • 4
  • 3
1 Solution
 
Dan CraciunIT ConsultantCommented:
You have this on your page:
<script language=javascript>
<!--
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
location.replace("http://test.bluestarbussales.com/index-2.html");
}
-->
</script>

Open in new window


Change http://test.bluestarbussales.com/index-2.html with the page you want.

HTH,
Dan
0
 
Nicholas_BlueStarAuthor Commented:
Dan, you rock! Thanks!
0
 
Dan CraciunIT ConsultantCommented:
Glad I could help!
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
Nicholas_BlueStarAuthor Commented:
Dan

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?
0
 
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...
0
 
Nicholas_BlueStarAuthor Commented:
that did it! thanks again Dan!
0
 
Dan CraciunIT ConsultantCommented:
You're welcome
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now