I want to do a valid string URL to render templates, I want to have URLs like this:
url(r'main.php?page=04rent&way=1&filtr=1', render_to_some_tempalte)
url(r'main.php?location=%C1%E0%F0%E2%E8%F5%E0&page=04rent&way=1&filtr=1', render_to_some_tempalte)
These URLs, I need to redirect to new templates. These are old URLs from php
server.
But these strings arent valid, how can I do this to valid URLs string, escape character \ didn't helps.