How can I write redirect rule to prevent duplicate content from comment page

Please, how can I use redirect each of the following (using htaccess):


Note: It's a Wordpress blog and the duplicates are showing on Google Webmaster tools - under HTML suggestions.


Try following code in your .htaccess file:

Options +FollowSymlinks -MultiViews
RewriteEngine on

RewriteCond %{QUERY_STRING} ^(post)?comment(s)?=true$
RewriteRule . %{REQUEST_URI}? [L]

Need Your Help

Adding shadow to textbox onFocus

jquery css shadow

I want to make this sort of Pinterest effect on my registration form - when the user focuses on an input text field or text area, I want this field or area to have a soft shadow around it, like thi...

How to update column value in laravel

laravel laravel-4 eloquent

I have a page model. It has following columns in database table:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.