I have this rewrite setting:

RewriteRule ^([a-zA-Z0-9_'-]+)$ /index.php?action=$1

but now I need for example to return an error to a register page by $_GET


but with the rewrite rule I can't get a PHP script to work with this URL:


What rewrite rule do I need to make this work?

Member Avatar

Is this a valid URL? Don't you mean...


Yea something like that, but the rewrite module doesn't rewrite it like ?action=register&error=1

Member Avatar

I'm confused.
1) How do you want the url to appear in your address bar? (/register/error/1/ ??)
2) What is the actual underlying url (I'm assuming ?action=register&error=1)

the url is supposed to look something like:
no .php, when rewritten, it'll outcome this: