Mail your problems to us on lawania@lavania.in, we will solve it and put the solution here at Lawania.com

Subdirectories URL Internally Redirect to Query String

The URL in the browser would be:

http://yoursite.com/index.php/fruit/banana/

The actual page rendered by the server would be:

http://yoursite.com/index.php?search=fruit&name=banana


Solution


RewriteEngine on
RewriteRule ^index/([^/]+)/([^/]+).php /page.php?search=$1&name=$2 [NC]
Share on Google Plus

About Prof Krishan Kant Lavania

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.