globalpr Posted February 11, 2016 Share Posted February 11, 2016 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 More sharing options...
globalpr Posted February 11, 2016 Author Share Posted February 11, 2016 I solved this issue: All was ok, the script that I'm using isn't compatible with HTTPS. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now