Just in case anybody ever comes across this issue here is how we kind of solved it now: We simply do no longer rewrite in nginx passing the value as q= to the php script (as shown above), but parse the request_uri directly in search.php using $searchkeyword = urldecode(trim(preg_replace('/\/search\//i', '', $_SERVER['REQUEST_URI'], 1))); Of course, if any other solution to the issueby Kleverhans - How to...
Hello everybody, after searching the web for several hours to no result I hope my issue can be solved here. We run a website www.example.com and want to have seo friendly search links such as www.example.com/search/hello+world These should be rewritten to www.example.com/search.php?q=hello+world - we do this with this rewrite rule: rewrite ^/search/(.*)$ /search.php?q=$1 This obvby Kleverhans - How to...