Forum Moderators: phranque
Any valid HTTP response status code may be specified, using the syntax [R=305], with a 302 status code being used by default if none is specified. The status code specified need not necessarily be a redirect (3xx) status code. However, if a status code is outside the redirect range (300-399) then the substitution string is dropped entirely, and rewriting is stopped as if the L were used.
RewriteCond %{TIME_WDAY} 0
RewriteRule ^(AutoIndex)($|/) - [L]
RewriteRule !^503\.shtml$ - [R=503,L] RewriteCond %{TIME_WDAY} 0
RewriteCond %{REQUEST_URI} !^/AutoIndex
RewriteRule !^503\.shtml$ - [R=503,L]