Skip to content

Instantly share code, notes, and snippets.

@josfaber
Last active November 20, 2021 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josfaber/277e0ffc0ed68e4666a26ff99866b76c to your computer and use it in GitHub Desktop.
Save josfaber/277e0ffc0ed68e4666a26ff99866b76c to your computer and use it in GitHub Desktop.
rewrite debugging
# FOR DEBUGGING PURPOSE
ErrorDocument 404 "Request: %{THE_REQUEST} Referrer: %{HTTP_REFERER} Host: %{HTTP_HOST} REQUEST_URI: %{REQUEST_URI}"
RewriteRule ^ - [L,R=404]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment