Tutorial Subdirectories URL Internally Redirect to Query String
The URL in the browser would be: http://css-tricks.com/index.php/teachers/a/ The actual page rendered by the server would be: http://css-tri...
https://iskablogs.blogspot.com/2014/03/tutorial-subdirectories-url-internally.html
The URL in the browser would be:
http://css-tricks.com/index.php/teachers/a/
The actual page rendered by the server would be:
http://css-tricks.com/index.php?search=teachers&sort=a
RewriteEngine on
RewriteRule ^index/([^/]+)/([^/]+).php /page.php?search=$1&sort=$2 [NC]
Reference URL
http://css-tricks.com/index.php/teachers/a/
The actual page rendered by the server would be:
http://css-tricks.com/index.php?search=teachers&sort=a
RewriteEngine on
RewriteRule ^index/([^/]+)/([^/]+).php /page.php?search=$1&sort=$2 [NC]
Reference URL