• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Prevent Duplicate Content

How To Prevent Duplicate Content?



no redirect to:


My .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

#remove www. from the uri and redirect with a 301 code.
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^example\.com
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

#rewrite uri if its not a file to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ /index.php/$1


There are many ways to work with duplicate content. Canonical URLs is also way to go. But the domain.tld and domain.tld/index.php google will handle that just fine and there is not a need to worry about that!

index pages (index.php, index.html) don't count as duplicate

If the same content showed up for
AND you had links to both urls, then you'd get penalized.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.