Wednesday 7 November 2012

Canonical Tag Implementation


Code utilized by computer program crawlers/spiders to inform search engines what uniform resource locator is that the original version of your webpage.


Canonical Tag Implementation

Custom 404 Pages:


404s will seem if a uniform resource locator is mistyped, an exploration engine link is out of date, or if a link on the positioning is broken. you would like to make a custom 404 page which will not confuse your readers in order that they will simply be redirected back to your website.
A 404 page ought to embrace a link back to the house page or website map of your web site thus users will quickly come back to to what they were finding out. an exploration box, if you have got a website search, is additionally an honest plan to feature to a 404 page. aside from that, keep the page minimal , take away distractions and obtain the user off the 404 error page as quickly as they got on.
Keep in mind most users might not be thus savvy once it involves the utilization of a custom 404 page and alternative net jargon thus straightforward explanations in English area unit key! though, keeping it minimalist doesn't need to mean "boring" once it involves the utilization of a custom 404 page. The steps to form} a custom 404 page area unit straightforward and this website will make a case for thoroughly the way to create one reckoning on your server. By following these steps, even the foremost novice individual are able to do success within the development of a custom 404 page.


301 Redirects :


If you have got previous pages on your web site that you simply need to get rid of or rename, use a 301 direct to preserve computer program rankings and die backlinks and/or page rank. you'll be able to even direct whole websites to new ones through the utilization of 301 redirects. the utilization of 301 redirects is simple to try to to and is extremely computer program friendly.
The term "301" stands for "moved for good." 301 redirects area unit created by employing a .htaccess file. Follow this guide to be told the way to implement many various varieties of 301 redirects. once pages area unit deleted rather than redirected with a 301, they transform 404s Not Found Pages.


301 non-www to www


From what I can tell Google has yet to clean up the canonicalization problem that arises when the www version of your site gets indexed along with the non-www version (i.e. http://www.seoappoint.com & http://seoappoint.com).

<code>
RewriteEngine On

RewriteCond %{HTTP_HOST} ^seoappoint.com [NC]
RewriteRule ^(.*)$ http://www.seoappoint.com/$1 [L,R=301]
</code>


The '(*.)$' says that we'll take anything that comes after http://seoappoint.com and append it to the end of 'http://www.seoappoint.com' (thats the '$1' part) and redirect to that URL. For more grit on how this works checkout a good regular expressions resource or two.

Note: You only have to enter 'RewriteEngine On' once at the top of your .htaccess file.

Alternately you may choose to do this 301 redirect from
in the Apache config file httpd.conf.

<code>
<VirtualHost 67.xx.xx.xx>
ServerName www.seoappoint.com
ServerAdmin info@seoappoint.com
DocumentRoot /home/seoappoint/public_html
</VirtualHost>

<VirtualHost 67.xx.xx.xx>
ServerName seoappoint.com
RedirectMatch permanent ^/(.*) http://www.seoappoint.com/$1
</VirtualHost>
</code>


Note that often webhost managers like CPanel would have placed a 'ServerAlias' seoappoint.com in the first VirtualHost entry which would negate the following VirtualHost so be sure to remove the non-www ServerAlias.

301 www to non-www


Finally the www 301 redirect to non-www version would look like:

<code>
RewriteCond %{HTTP_HOST} ^www.seoappoint.com [NC]
RewriteRule ^(.*)$ http://seoappoint.com/$1 [L,R=301]
</code>


Redirect All Files in a Folder to One File


Lets say you no longer carry 'Best Travel Deal' and hence want to redirect all requests to the folder /besttraveldeal to a single page called /new-offer.php. This redirect can be accomplished easily by adding the following your .htaccess page:

<code>
RewriteRule ^besttraveldeal(.*)$ /new-offer.php [L,R=301]
</code>


But what if you want to do the same as the above example EXCEPT for one file? In the next example all files from /besttraveldeal/ folder will redirect to the /new-offer.php file EXCEPT /besttraveldeal/tours.html which will redirect to /indiatours.html

<code>
RewriteRule ^besttraveldeal/tours.html /indiatours.html [L,R=301]
RewriteRule ^besttraveldeal(.*)$ /new-offer.php [L,R=301]
</code>


Redirect a Dynamic URL to a New Single File


It's common that one will need to redirect dynamic URL's with parameters to single static file:

<code>
RewriteRule ^article.asp?id=(.*)$ /seoservices.html [L,R=301]
</code>


In the above example, a request to a dynamic URL such as http://www.seoappoint.com/article.jsp?id=8932
will be redirected to http://www.seoappoint.com/seoservices.html
Search:
Search:

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Ramkesh Bairwa