I’m using codeigniter to create a search page. I’d like to rewrite a GET url to work with CI.
Example
http://mysite.com/en/search?search=widgets
becomes
http://mysite.com/en/search/widgets
I thought I could do this in the routes.php, but it doesn’t seem to grab the stuff after the ?. So now i’m thinking as a rewrite in .htaccess. Is this a good idea? What would the rewrite rule be?
You should use only the CI routing protocol. Anyway if you want to use .htaccess is this: