WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got url-rewriting partially working. I have this rule:


When I request a page like this:


The Visitor gets redirected to:


But I'd like to keep the additional parameters of the original url. How can I achieve this?

And I noticed something else. When I generate a link like above from a form via JavaScript I get "page not found" although the url is correct. Now when I refresh that same page I get redirected to the page mentioned above. Why isn't it working on the first try?

I'd appreciate any help.

Kind regards, Denyo

share|improve this question
up vote 1 down vote accepted

Okay I figured it out. Instead of using this rewrite rule:


I now use this one:


And now everything works like I wanted it to. Obviously using the page id instead of the page name was the problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.