Welcome Guest, Not a member yet? Register   Sign In
URI routing question
#6

[eluser]Craig A Rodway[/eluser]
Ok, I've been playing around with this a bit and after some testing it seems that you can get this to work if you change the URI protocol in config.php to PATH_INFO and use something like this mod_rewrite:

Code:
RewriteEngine on
RewriteBase /

RewriteCond $1 !^(index\.php|web)
RewriteCond %{QUERY_STRING} auth_token=(.*)$
RewriteRule ^(.*) index.php/$1/auth/%1 [L]

RewriteCond $1 !^(index\.php|web)
RewriteRule ^(.*)$ index.php/$1

http://www.example.com/welcome/welcome/?...cdef123456

would make:

http://www.example.com/welcome/welcome/a...cdef123456

If you don't change it to PATH_INFO, it looks like the query string upsets the auto-detection. Also, with default routing in place, if you don't specify a controller and a function it won't work either.


Messages In This Thread
URI routing question - by El Forum - 01-05-2008, 02:42 PM
URI routing question - by El Forum - 01-06-2008, 02:34 AM
URI routing question - by El Forum - 01-06-2008, 06:12 AM
URI routing question - by El Forum - 01-06-2008, 08:04 AM
URI routing question - by El Forum - 01-06-2008, 08:18 AM
URI routing question - by El Forum - 01-06-2008, 08:18 AM
URI routing question - by El Forum - 01-06-2008, 08:34 AM
URI routing question - by El Forum - 01-11-2008, 02:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB