Jump to content

<script>


Recommended Posts

Hi,
 
I am developing a mobile website for a client whose domain is https://mydomain.com/subdir. The mobile website is hosted on a different server.
 
I need to insert the following code so that the web site will automatically redirect to the subdomain m.mydomain.com when accessed from mobile devices:
 
<Script src = "http: //static.mobile...com/redirect.js" type = "text / javascript"> </ script>
<Script type = "text / javascript"> Mobile_redirect ("http://m.mydomain.com"); </ script>
 
Where should I insert this code?
 
Thanks in advance.
 
-
Pedro
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...