Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Tools for Tracking and Managing SEO 699

25


RewriteRule http://www.example.com/dupe.html http://www.example.com/canonical-
file.html [r=301,L]


You can also do it with PHP:


<?php
Header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://www.example.com/canonical.html");;)
?>


Place that at the top of the duplicate page, and it will redirect to the new one.


Checking How Your Site Looks to Search Engines


One way to make sure that your SEO efforts are working is to try to see your site as a
search spider might see it. There are several tools you can use to see your site as a search
engine does. The first place you should look is the Google cache. View the text-only ver-
sion to see what your site looks like to Google. Figure 25.1 shows what the InformIT site
looks like to Google.


Other tools you can use to view your site include SEO-browser.com and the MozBar
(https://moz.com/tools/seo-toolbar/). These tools can give you a better idea of why your


FIGURE 25.1
The Google Web
cache of InformIT.

Free download pdf