Thursday, 19 June 2014

Canonical issue issue and www redirection

It is duplicate issue come up in e-commerce or non e-commerce site. To prevail not to index a duplicate page in Search results. The reason can lead a penalty for a site. To come up with this situation SEO webmasters use a piece of code to resolve duplicate page problem.

How to find It: It is easy to find if you site page or URL contain duplicate content. If you have site then your index page is duplicate with site domain name.  Most of e-commerce site also have duplicate content because they use filter to find a single item by using specific filter.

Canonical issue comes is part of on page optimization so if you are search engine specialist then you must get know about it. Here, SEO Training Gurgaon will explain the issue and its solution.

We explain you with example how URL can be duplicate.
www.abc.com – the page is to index by search engines.
www.abc.com/index.php the page also contains same information as route domain has. So the page must be fixed to avoid duplicate content of it. It comes in every site when developer developed home page with index name page.

Solution:  To use 301 redirection index files to preferred domain such as www.abc.com
Using <link rel="canonical" href="" /> html code. The code will inform to search engines not to index the page if we specify the link in canonical page.

Learn Resolving www at SEO training institute in Gurgaon: Webmasters need to check if the site is running with www and without www. If it is case that your site shows contain with both the method then it must be redirect to use 301 redirection methods for a site.

Search engines consider such site two different site which can hamper your ranking and can decrease value if search engines catch it. The case may be resolved to use redirection method. While doing fix it you have to set preferred method in webmasters and then use redirection code accordingly. There two kind of web hosting which has separate method to come up with the cause.

You have to verify the site with prefer domain which you want to keep for business purpose. Moreover, you can verify with both non www and www to claim you have ownership with both version.  And then set preference to follow the setting such as:
Google webmasters>click on verified site>setting>site setting>

Window hosting: If a site is running on window server (IIS7) and the type of hosting is multi domain hosting. Is such case, you can execute code with web.config file to add appropriate piece of server configuration code.

Code snippet for web.config:

<rule name="Redirect to WWW" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^seotraininginstitute\.in$" />
  <add input="{PATH_INFO}" pattern="^/blog/" negate="true"/>
          </conditions>
          <action type="Redirect" url="http://www.seotraininginstitute.in/" redirectType="Permanent" />
        </rule>

Redirection on apache server:  You need to verify if the site is running on apache server the use can use .htaccess file to resolve www to non www or vice versa.

Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^abc\.com$ [NC]
RewriteRule ^(.*)$ http://www\.abc\.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index\.html
RewriteRule ^(.*)index.html$ http://www.abc.com/$1 [R=301,L]

The codes are tested and work fine on both servers. To get better under sting you can join search engine optimization training to be master in this sector.

No comments: