add RVM dot files to gitignore
replace request.path + '?' + request.query_string with request.original_fullpath in order to avoid appending '?' to redirects that have no query string