0

I got a rewritten url that looks like this:

http://www.mysite.com/users/login/

it's rewritten from http://www.mysite.com?module=users&class=login

The thing is: for the login, I want the return url.

I thought i could just do this:

http://www.mysite.com/users/login/?returnurl=http://www.mysite.com/whatever/url/we/are/at

but when I var_dump $_GET all I get is module and class.

How can I have the returnurl as well?

1
  • Please show your mod_rewrite statements Commented Jun 5, 2011 at 9:53

1 Answer 1

1

Add the [QSA] flag to your rewrite rule. Example:

 RewriteRule /pages/(.+) /page.php?page=$1 [QSA]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.