Revert "appending query string in rewrite rule"

This reverts commit a36b65d45007523d45fe28eb49087e992c1b91ca.
Revert "removed dollar sign to see if that helps oauth/login not being matched"

This reverts commit b2dfe88757881ed08f198bdcfc4e2d6dd2a6020f.