in continuation to what i asked here i want to auto rewriting of below url
http://testsite.com/siterootb/sample-page.php?bbi=value1&bbl=value2
to
http://testsite.com/siterootb/sample-page/value1/value2
my htaccess
now looks like
RewriteEngine on
RewriteCond %{QUERY_STRING} !^$
RewriteRule ^(.*) http://localhost%{REQUEST_URI}%1? [R=301,L]
###########################################################################
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/siterootb/([^/]+)/([^/]+)/([^/]+)
RewriteCond %{DOCUMENT_ROOT}/siterootb/%1.php -f
RewriteRule ^/?([^/]+)/([^/]+)/([^/]+) $1.php?bbi=$2&bbl=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [L]
i have gone through URL Rewriting - Query String, url rewriting a query string, wordpress how to remove ? from the url using htaccess and many more whichever i got from [query-string] [.htaccess]