If there is browse_by_exam
or my_study_centre
in the 1st position starting from project_name
as in
http://project_name/browse_by_exam/type/classes/...
http://project_name/my_study_centre/page_sort/1,20,name,asc/...
Then apply these 2 rules:-
RewriteRule ^([a-zA-Z0-9\-\_]+)/?$ index.php?a=$1
RewriteRule ^([a-z0-9\-\_]+)/([a-z0-9\-\_]+)/?$ index.php?a=$1&b=$2
For all other URLs apply these rules:-
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]
Thanks,
Sandeepan