Phpfox CMS Annotations for desktop and mobile URLs
You are going to discover wy the Annotations for desktop and mobile URLs on phpfox script is important.
Recently I received a email offer from a wordpress plugs developer. In the messages they were offering to test a analytic program. SEOMOZ
You can watch the following video that explain how the analytic program software work and offer you 75 days free trial.
After grabbing my free 75 days trial I tested my site that use phpfox 3.5.0 first build.
The analytic show in detail every error, worming or any issue that prevent your pages from ranking high in Google and other search engines. SEOMOZ is one of the top recommended seo analytic available on the web.
In my test result one major error is duplicated contents in Phpfox CMS. My site have 12, 331 error cause by duplicated content and allots of them are cause by the mobile URLs version.
You have the following structure of URLs on phpfox script:
1. http://demo.phpfox.com/photo/ for the desktop version of your site urls.
2. http://demo.phpfox.com/mobile/photo/ for the mobile version of your site urls.
The problem is the phpfox script mobile and desktop URLs use the same content and titles and descriptions. so in search engine like Google in create duplicated content and it split the links to your pages make it hard to rank for both mobile and desktop.
This issue can be fix pretty easy by adding.
Annotations for desktop and mobile URLs
To help our algorithms understand this configuration on your site, we recommend using the following annotations:
- On the desktop page, add a special link rel="alternate" tag pointing to the corresponding mobile URL. This helps Googlebot discover the location of your site's mobile pages.
- On the mobile page, add a link rel="canonical" tag pointing to the corresponding desktop URL.
Google explain how to fix this issue, read more here
Annotation in the HTML
On the desktop page, add:
<link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.example.com/page-1" >
and on the mobile page, the required annotation should be:
<link rel="canonical" href="http://www.example.com/page-1" >
This rel="canonical" tag on the mobile URL pointing to the desktop page is required.
Annotation in Sitemaps
We support including the rel="alternate" annotation for the desktop pages in Sitemaps like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://www.example.com/page-1/</loc>
<xhtml:link
rel="alternate"
media="only screen and (max-width: 640px)"
href="http://m.example.com/page-1" />
</url>
</urlset>The required rel="canonical" tag on the mobile URL should still be added to the mobile page's HTML.
Annotation in detail
Notice the attributes of the link tag on the desktop page:
- The rel="alternate" attribute signals that this tag specifies an alternative URL to the desktop page.
- The media attribute's value is a CSS media query string that specifies the media features the alternative URL applies to. In this case, we're using a media query that's typically used to target smartphones.
- The href attribute specifies the location of the alternative URL, namely on the page on m.example.com.
This two-way ("bidirectional") annotation helps Googlebot discover your content and helps our algorithms understand the relationship between your desktop and mobile pages and treat them accordingly. When you use different URLs to serve the same content in different formats, the annotation tells Google's algorithms that those two URLs have equivalent content and should be treated as one entity instead of two entities. If they are treated separately, both desktop and mobile URLs are shown in desktop search results, and their positions may be lower than they would otherwise be.I am sure phpfox team are working on fixing this issue as they also like there script to be a good and perform.
I am sure phpfox team are working on fixing this issue as they also like there script to be a good and perform.


