I'm building a single page app by loading view files into the template (index.php) - which is working well - except for searching.
My URL
http://testdomain.loc/members/search/?s=foo+bar
My Rule
RewriteRule ^members/search/(.*)$ index.php?view=members-search&keywords=$1 [L]
This is loading the correct view, but it's not passing the keyword parameters, so when I print_r($_GET)
, this is what I see...
(
[view] => members-search
[keywords] =>
)
What's the correct way to do this?