RewriteRule ^layouts-gallery/(.*)$ layouts-gallery.php?myid=$1 RewriteRule ^layouts-gallery/(.*)/(.*)$ layouts-gallery.php?myid=$1$page=$2 Code (markup): The parts above are what im using in my .htaccess file to try and make my users layout gallery's more search engine friendly. The first one works (changes layouts-gallery.php?myid=1 to layouts-gallery/1) but now i need pages to work, check this page out: http://www.myrawr.com/layouts-gallery/1 That is my gallery of layouts, try clicking page 2 - the page works but still shows the layouts from page one... anybody know what i need to do to change this so that it works correctly? Pages work like this: http://www.myrawr.com/layouts-gallery/1/2 (page 2) Well, that's how i want them to work anyway... Thanks for any help in advance!
You forgot an & sing. However, you can do this with one line: Try: RewriteRule ^layouts-gallery/(.*)(/\d+)?$ layouts-gallery.php?myid=$1&$page=$2 Code (markup):
Thanks nico, but that didn't seem to work - still displayed the same layouts from page one. Page two should have only 2 layouts on