Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ErrorDocument 403 /403.php
ErrorDocument 401 /401.php
ErrorDocument 410 /410.php
RewriteCond %{QUERY_STRING} ^status=401$
RewriteRule ^ - [L,R=401]
RewriteCond %{QUERY_STRING} ^status=403$
RewriteRule ^ - [L,R=403]
RewriteCond %{QUERY_STRING} ^status=404$
RewriteRule ^ - [L,R=404]
RewriteCond %{QUERY_STRING} ^status=410$
RewriteRule ^ - [L,R=410]
RewriteCond %{QUERY_STRING} ^status=500$
RewriteRule ^ - [L,R=500]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.