Skip to content

Instantly share code, notes, and snippets.

@Binternet
Created April 15, 2018 18:18
Show Gist options
  • Save Binternet/aa68672930215bcc1dd96efcd441a790 to your computer and use it in GitHub Desktop.
Save Binternet/aa68672930215bcc1dd96efcd441a790 to your computer and use it in GitHub Desktop.
401 Redirect
RewriteEngine on
#
# stuff to let through (ignore)
RewriteCond %{QUERY_STRING} ^p=2169$ [OR]
RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) $1 [L,R=401]
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment