« Drupal 6 SEO with PathAuto | Main | How to compress pdfs in Ubuntu »

March 03, 2011

Rewrite URL to remove duplicate content

I added these lines to .htaccess to make sure search engines were not indexing duplicate content.

< IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.umbs.lsa.umich\.edu$ [NC]
RewriteRule ^(.*)$ http://umbs.lsa.umich.edu/$1 [R=301,L]

Posted by kkwaiser at March 3, 2011 12:31 PM

Comments

you are quite brave to rewrite .htaccess files.
i messed this ones pretty badly and since then tend to use mostly plugin or just set it up with the postname canonical urls if its wordpress.

Posted by: translatorsclub@yahoo.com at August 4, 2011 07:16 AM

Login to leave a comment. Create a new account.