Apache: RewriteUrl [R]


R=301 (Moved permanently)

RewriteEngine On
RewriteRule ^oldurl\.html$     http://www.google.com [R=301]

R=302 (Moved temporarily)

RewriteEngine Off
RewriteRule ^oldurl\.html$     http://www.google.com [R=302]

R=403 (Forbidden)

RewriteEngine Off
RewriteRule ^oldurl\.html$     [R=403]

R=404 (Not Found)

RewriteEngine Off
RewriteRule ^oldurl\.html$     [R=404]

R=410 (Gone)

RewriteEngine Off
RewriteRule ^oldurl\.html$     [R=410]