How To Prevent Duplicate Content |
[eluser]Unknown[/eluser]
How To Prevent Duplicate Content? Example: http://codeigniter.com/index.php no redirect to: http://codeigniter.com/ 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 </IfModule> |
Messages In This Thread |
How To Prevent Duplicate Content - by El Forum - 08-16-2012, 04:33 AM
How To Prevent Duplicate Content - by El Forum - 08-16-2012, 05:45 AM
How To Prevent Duplicate Content - by El Forum - 08-16-2012, 09:50 AM
|