# Additional GET variables with RewriteRule

**URL:** <https://forum.kirupa.com/t/additional-get-variables-with-rewriterule/268107>\
**Category:** programming\
**Created:** [August 9, 2008, 9:23pm UTC](https://forum.kirupa.com/t/additional-get-variables-with-rewriterule/268107 "2008-08-09T21:23:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icy\_Penguin](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Post date:** [August 9, 2008, 9:23pm UTC](https://forum.kirupa.com/t/additional-get-variables-with-rewriterule/268107/1 "2008-08-09T21:23:47Z")

</div>

Howdy everyone,

I am trying to get my RewriteRules working compeltely.

Right now I have this:

RewriteRule ^([a-zA-Z0-9]+)$ $1.php  
RewriteRule ^([a-zA-Z0-9]+)/$ $1.php

That works fine. As does this:

RewriteRule ^books/wanted$ books.php?category=wanted  
RewriteRule ^books/wanted/$ books.php?category=wanted  
RewriteRule ^books/unwanted$ books.php?category=unwanted  
RewriteRule ^books/unwanted/$ books.php?category=unwanted  
RewriteRule ^books/all$ books.php?category=all  
RewriteRule ^books/all/$ books.php?category=all

However, if I navigation to books/all/?some\_other\_variable=wtf it doesn’t work - $\_GET[“some\_other\_variable”] doesn’t exist.

Any help here would be much appreciated.
