Skip to content

Instantly share code, notes, and snippets.

@saml
Last active December 18, 2015 20:43
Show Gist options
  • Save saml/23cd560ea97bc08d8b06 to your computer and use it in GitHub Desktop.
Save saml/23cd560ea97bc08d8b06 to your computer and use it in GitHub Desktop.
RewriteRule ^/foobar$ 'http://localhost:8000/?q="foo bar"' [P,L]
::1 - - [18/Dec/2015:15:37:53 --0500] [localhost/sid#1a7a968][rid#1c9e140/initial] (2) rewrite '/foobar' -> 'http://localhost:8000/?q="foo bar"'
::1 - - [18/Dec/2015:15:37:53 --0500] [localhost/sid#1a7a968][rid#1c9e140/initial] (3) split uri=http://localhost:8000/?q="foo bar" -> uri=http://localhost:8000/, args=q="foo bar"
RewriteRule ^/foobar$ 'http://localhost:8000/?q="foo%20bar"' [P,L]
::1 - - [18/Dec/2015:15:41:13 --0500] [localhost/sid#1a7a968][rid#1c5fdd0/initial] (2) rewrite '/foobar' -> 'http://localhost:8000/?q="foo0bar"'
::1 - - [18/Dec/2015:15:41:13 --0500] [localhost/sid#1a7a968][rid#1c5fdd0/initial] (3) split uri=http://localhost:8000/?q="foo0bar" -> uri=http://localhost:8000/, args=q="foo0bar"
RewriteRule ^/foobar$ 'http://localhost:8000/?q%3D%22foo%20bar%22' [P,L]
::1 - - [18/Dec/2015:15:43:00 --0500] [localhost/sid#1b4ba68][rid#1c65e60/initial] (2) rewrite '/foobar' -> 'http://localhost:8000/?qD2foo0bar2'
::1 - - [18/Dec/2015:15:43:00 --0500] [localhost/sid#1b4ba68][rid#1c65e60/initial] (3) split uri=http://localhost:8000/?qD2foo0bar2 -> uri=http://localhost:8000/, args=qD2foo0bar2
RewriteRule ^/foobar$ 'http://localhost:8000/?q="foo+bar"' [P,L]
::1 - - [18/Dec/2015:15:40:03 --0500] [localhost/sid#1b4ba68][rid#1c586c0/initial] (2) rewrite '/foobar' -> 'http://localhost:8000/?q="foo+bar"'
::1 - - [18/Dec/2015:15:40:03 --0500] [localhost/sid#1b4ba68][rid#1c586c0/initial] (3) split uri=http://localhost:8000/?q="foo+bar" -> uri=http://localhost:8000/, args=q="foo+bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment