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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -