My issue is i have QUERY_STRING enabled in my codeigniter setup so that links look like this http://www.domain.com/search/index/page/4?squery=searchterm
I have a form on this page that uses GET because I can't use POST for what i'm using, when i try to retrieve the "squery" using $this->uri->segment(4)
it doesn't return that part only the 4 part. What way can i retrieve the search term ?
This is in my htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?/$1 [L]
Got it to work by doing this Changing my config variables
And changing my htaccess to this
Help found here How to make CodeIgniter accept "query string" URLs?