php - How to change the url from /(id) to ?=(id) -
i have url looks that:
/reservations/database/read/1641
how can make , function work under parameters:
/reservations/database/read?id=1641
what should edit? configuration of routes or how function made?
.htaacess
rewriteengine on rewritecond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico) rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ ./index.php?$1 [l,qsa]
probably may you.
rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/]+)/?$ index.php?$1 [l,qsa]
Comments
Post a Comment