my redirect is not working on this server

Category: How To

InMotionFans
n/a Points
Asked:
2014-07-30 10:20 am EST

Hits: 17
when i type in sunsetwatersports.info on my samsung reverb (android phone) i get sunsetwatersports.info/www.sunsetwatersports.info/mobile

the code i use on my web site to redirect is
<script type="text/javascript">
<!--
if (screen.width <= 550) {
window.location = "http://sunsetwatersports.info/mobile";
}
//-->
</script>

i use this same code on other web sites i have on another server and they work fine on my phone
why is this one not coming up right

my main domain is keywestdinnercruise.com and sunsetwatersports.info is a sub domain

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JeffMa
Staff
9,384 Points
2014-07-30 10:34 am EST
I was actually unable to replicate the issue at all on my phone using both the default browser as well as the Chrome browser. My phone that I tested it with is an HTC One Max.

I also attempted to replicate the issue with an iPhone 5 in which I still could not see an issue at all.

You may have some sort of caching issue in your phone in which you may need to reset all browser data.

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!