Welcome Guest, Not a member yet? Register   Sign In
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.

Theme © iAndrew 2016 - Forum software by © MyBB