Mobile Website URLs Configuration

by Geethalakshmi 2012-12-27 15:53:04

Mobile Website URLs Configuration



To understand the configuration of a your desktop along with the mobile website, it recommends the usage of a special link rel="alternate" tag and rel="canonical" tag pointing to the desktop and mobile site respectively.

Example:

Consider a desktop URL http://hiox.org/page1.php, and the corresponding mobile URL for the same page as http://mobile.hiox.org/page1.php, the configuration of the above specified special link should be as follows,

On the desktop page, add:

<link rel="alternate" media="only screen and (max-width: 640px)" href="http://mobile.hiox.org/page1.php" >


and on the mobile page, the required annotation should be:

<link rel="canonical" href="http://hiox.org/page1.php" >


* This rel="canonical" tag on the mobile URL pointing to the desktop page is required.

The url path should not be changed for mobile website.

Tagged in:

926
like
0
dislike
0
mail
flag

You must LOGIN to add comments