Mobile app version of vmapp.org
Login or Join
Welton855

: How to avoid duplication problem in seo when create a mobile version of asp.net webpage? I want to create a mobile version of an existing desktop page. I made copy of my pages and used this

@Welton855

Posted in: #AspNet #DuplicateContent #Seo

I want to create a mobile version of an existing desktop page. I made copy of my pages and used this code for detecting mobile device :

public void Page_Load(Object sender, EventArgs e)
{
if (Request.Browser["IsMobileDevice"] == "true" )
{
Response.Redirect(@"~/Content/PageXmobile.aspx");
}
else
{
Response.Redirect("PageX.aspx");
}
}


PageXmobile.aspx is a copy of PageX.aspx except that PageXmobile.aspx is formatted for mobile device but the content is the same on both pages.
How to solve this duplication issue?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Welton855

2 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas447

If the mobile site is not placed on a subdirectory or if there's no mobile counterpart page (example.com/page1.asp / m.example.com/page1.asp), no need to use the <link rel="canonical" href="https://m.example.com/page1.asp"/>.

If they are separate pages, use the rel="canonical" attribute and don't forget to add mirror or copy the same meta title and description from the main website to the mobile site.

10% popularity Vote Up Vote Down


 

@Nimeshi995

Be sure to use canonical meta tags or HTTP headers.

Add the following meta tag within both pages and point it to the desktop or primary version:

<link rel="canonical" href="http://www.example.com/article-page" />


You can also send the following HTTP Header along with the request as an alternate way of providing the canonical page:

Link: <http://www.example.com/article-page>; rel="canonical"

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme