URLs containing other URLs

New to mod_rewrite? This is a good place to start.

URLs containing other URLs

Postby Someoneorother » Mon Feb 20, 2006 1:39 am

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?
Someoneorother
 
Posts: 1
Joined: Mon Feb 20, 2006 1:31 am

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 29 guests

cron