View Single Post
  #2  
Old 03-21-2011, 11:35 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
is the last part (i.e. test/1) always the parameters to the php script (i.e. butcher-details(.php) and rate-butcher(.php)) prior to that? there can be 0 (/) or multiple level directories (/cp/..), correct? if so, try something like the following: %

Quote:
RewriteEngine On
RewriteCond %{REQUEST_URI} !.+php*
RewriteCond %{DOCUMENT_ROOT}/$1\.php -f
RewriteRule ^(.+)/(.+/.+)$ $1.php/$2 [L]

Last edited by webizen; 03-21-2011 at 11:44 AM..
Reply With Quote