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?
Nicholas_BlueStarAsked:
Who is Participating?
 
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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
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.

All Courses

From novice to tech pro — start learning today.