I currently have the following code to rewrite search engine friendly url's to something PHP can handle however there are a few issues.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)/(.*) index.php?$1/$2
This Rewrites: domain.com/cat/mens/size/large/
To This: domain.com/index.php?cat/mens/size/large/
It would be ideal if I could rewrite it to something like this using varying amounts of sub directories such as this which is friendlier to the PHP code:
Ideal Rewrite: domain.com/index.php?cat=mens&size=large
Another Example: domain.com/page/value/subpage/subvalue/something/true/
Should Rewrite To: domain.com/index.php?page=value&subpage=subvalue&something=true
Also is there a way to rewrite: domain.com/search/?q=blah+blah
To: domain.com/index.php?search&q=blah+blah
Thanks guys!