Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How can I write redirect rule to prevent duplicate content from comment page
  2. http://www.example.com/jane-doe-online-5026?comments=true
  3. http://www.example.com/jane-doe-online-5026?postcomment=true
  4.        
  5. http://www.example.com/jane-doe-online-5026
  6.        
  7. Options +FollowSymlinks -MultiViews
  8. RewriteEngine on
  9.  
  10. RewriteCond %{QUERY_STRING} ^(post)?comment(s)?=true$
  11. RewriteRule . %{REQUEST_URI}? [L]