To redirect visitors to your mobile site you need to add redirection code to your desktop site. There are several options to choose from. The most popular way of doing this is to add some JavaScript to your desktop site’s template. Because all websites are not developed in the same programming language the redirection code is also available in multiple languages such as PHP, ASP.Net, JSP. To generate the correct code for your desktop site simply click the finish button on the mobile site’s control panel and follow the steps outlined. Step 1. Select the required language, in this example we have selected Javascipt, and generate. Step 2. Download redirection code Step 3. Open downloaded redirection code in text editor Step 4: Paste this code into your HTML before the tag. If your site uses a content management system such as WordPress or templates, this code should be included in all of your templates. Once you’ve put these changes live on your desktop site, all traffic from mobile phones will be seamlessly redirected to your mobile site.
- 10 Users Found This Useful