Basically...I have two rules I'm trying to combine:
RewriteRule ^([^/\.]+)/?([^/\.]+)/?$ index.php?location=$1&id=$2 [QSA,L]
RewriteRule ^/?([^/\.]+)/?$ index.php?location=$1 [QSA,L]
The first rule works in rewriting this "http://www.index.php?location=books&id=33422" to "http://www.test.com/books/33422"
The second rule works in rewriting "http://www.test.com/index.php?location=main_book_section" to "http://www.test.com/main_book_section"
How can I combine them both??