HOW TO: Change htaccess file to solve duplicate content due to pagination
-
I want to add this line
RewriteRule ^(.*)/comment-page-1/ $1/ [R=301,L]
in htaccess file.
I know how to do it but where exactly to put this line.
I have added it here but i think its not working, how to solve my problem?# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^(.*)/comment-page-1/ $1/ [R=301,L]
</IfModule># END WordPress
- The topic ‘HOW TO: Change htaccess file to solve duplicate content due to pagination’ is closed to new replies.