Solved

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

Posted on 2014-03-04
7
170 Views
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?
0
Comment
Question by:Nicholas_BlueStar
  • 4
  • 3
7 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39904672
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
 

Author Comment

by:Nicholas_BlueStar
ID: 39906617
Dan, you rock! Thanks!
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39906622
Glad I could help!
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:Nicholas_BlueStar
ID: 39906658
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
 
LVL 34

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...
0
 

Author Comment

by:Nicholas_BlueStar
ID: 39906751
that did it! thanks again Dan!
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39906755
You're welcome
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
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 +…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now