Skip to content

Instantly share code, notes, and snippets.

@fossil12
Created February 6, 2013 00:28
Show Gist options
  • Save fossil12/4719116 to your computer and use it in GitHub Desktop.
Save fossil12/4719116 to your computer and use it in GitHub Desktop.
Apache: Debug mod_rewrite on hosted server
RewriteCond %{QUERY_STRING} !vardump
RewriteRule (.*) http://www.example.com/$1?vardump&thereq=%{THE_REQUEST}&reqhost=%{HTTP_HOST}&rem_host=%{REMOTE_HOST} [R=301,L,QSA]
@fossil12
Copy link
Author

fossil12 commented Feb 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment