How to Convert a
Website to Make it Mobile Compatible
It is possible to access a website, through your mobile only if the website is mobile compatible. It is possible to convert a website to make it more mobile friendly, without much effort from your part.
The first thing you have to do is to start a sub domain for the existing website. This is easily done, with the help of your host. The main objective is to make a sub domain that is a ‘mirror’ of your main site and should just point to your existing site.
Create a small PHP file
Next, you have to create a PHP file that is automatically prep ended to all pages of your site by using a PHP function. This function reads your whole HTML source and then sends its output to the users’ web browsers in actual time while instructing search engine robots not to index the mobile website to avoid duplicate listings.
Then you have to create a small PHP file that gets added to the end of each file on the site, which is responsible for outputting pages to the browser. With this done, both these prepends and appends have to be enabled with the help of an .htaccess found at the root of your server.
This done, you will be able to visit your website, through your mobile, as a compact, nice, imageless, scriptless and style less version of your website. Moreover, these mobile websites are much faster to download than the computer version of websites, and are much easier on screen readers too.
|