How can I properly create a clean url that contains another url (for redirection purposes).
I want this:
http://www.mysite.com/members/login/red ... /register/
to be interpreted as this:
http://www.mysite.com/?module=members&p ... /register/
The slashes in the redirect url seem to be screwing things up. I am using php's urlencode() function to convert the punctuation in the redirect url, however, when loading this url in the browser, I get a "not found" error that spits back the url with the slashes and other punctuation intact (http:// instead of http%3A%2F%2F).
Does anyone have any ideas how I can successfully pass a redirect url in the request url like this using mod_rewrite?