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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -