Welcome Guest, Not a member yet? Register   Sign In
Routes and GET Query.
#8

[eluser]WanWizard[/eluser]
This one works for me:
Code:
RewriteCond $1 ^subtitles/search$
RewriteCond %{QUERY_STRING} ^subs\=([^&]+)$
RewriteRule ^(.*)$ $1/subs/%1 [L]

This requests
Quote:http://test.catwoman.exite.local/subtitl...teststring

gives a $this->uri->uri_string of
Quote:/subtitles/search/subs/teststring

Note: this rewrite has to be placed before the rewrite to index.php, otherwise the first condition will never match.


Messages In This Thread
Routes and GET Query. - by El Forum - 08-16-2010, 02:00 PM
Routes and GET Query. - by El Forum - 08-16-2010, 02:49 PM
Routes and GET Query. - by El Forum - 08-16-2010, 02:52 PM
Routes and GET Query. - by El Forum - 08-16-2010, 02:55 PM
Routes and GET Query. - by El Forum - 08-16-2010, 02:58 PM
Routes and GET Query. - by El Forum - 08-16-2010, 03:12 PM
Routes and GET Query. - by El Forum - 08-16-2010, 03:19 PM
Routes and GET Query. - by El Forum - 08-16-2010, 06:00 PM
Routes and GET Query. - by El Forum - 08-17-2010, 05:36 AM
Routes and GET Query. - by El Forum - 08-17-2010, 06:42 AM
Routes and GET Query. - by El Forum - 08-17-2010, 06:50 AM
Routes and GET Query. - by El Forum - 08-17-2010, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB