Forum Moderators: phranque
RewriteCond %{QUERY_STRING} ^tag=[^&]+
RewriteRule ^cad-directory/$ http://www.example.com/sitemap.html [R=301,L]
ErrorDocument 410 /local-path-to-my-410-gone-error-page.html
#
RewriteCond %{QUERY_STRING} ^tag=[^&]+
RewriteRule ^cad-directory/$ - [G]
RewriteRule ^cad-directory/$ - [G] the URL in the browser must not change
Do not use both "RewriteRule" and "Redirect" in the same server unless you control the server and can specify the Apache module execution order.
RewriteCond %{HTTP_HOST} ^www\.example\.com
RewriteCond $1 ^events/year/2011-06-1\.html$ [OR]
RewriteCond $1 ^events/day/2010-06-01\.html$
RewriteRule ^(.+\.html)$ – [G]