Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • 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
Hire Technology Freelancers with Gigs

Work with 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.

 
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

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

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