- How can I write redirect rule to prevent duplicate content from comment page
- http://www.example.com/jane-doe-online-5026?comments=true
- http://www.example.com/jane-doe-online-5026?postcomment=true
- http://www.example.com/jane-doe-online-5026
- Options +FollowSymlinks -MultiViews
- RewriteEngine on
- RewriteCond %{QUERY_STRING} ^(post)?comment(s)?=true$
- RewriteRule . %{REQUEST_URI}? [L]