Badea Sorin
Badea Sorin

Reputation: 174

Passing GET parameters in mod_rewrite

I've build a set of mod_rewrite rules but I have a problem.

For example, I have the following url rewritten: http://dummydomain.com/category/something.html that points to http://dummydomain.com/index.php?page=category&thing=something. If I put GET params in the first url I don't get them in my php program. How can I tweak this?

Upvotes: 0

Views: 367

Answers (1)

ceejayoz
ceejayoz

Reputation: 180004

Add the [QSA] ("query string append") flag at the end of your rules.

Upvotes: 3

Related Questions