Welcome Guest, Not a member yet? Register   Sign In
URI Routing Questions/Possibilities
#2

[eluser]RellimTtocs80[/eluser]
After trying some different things, I have found that adding the route within config/routes.php as
Code:
$route['(:any)/(:any)'] = "campus/departments/$1/$2";
will allow you to still use other controllers that exist. May be it has something to do with the .htaccess file that I have the following in

Code:
RewriteEngine On
RewriteBase /ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

where if the file is a valid file, there will be no rerouting/rewriting


Messages In This Thread
URI Routing Questions/Possibilities - by El Forum - 02-24-2011, 08:12 AM
URI Routing Questions/Possibilities - by El Forum - 02-24-2011, 12:52 PM
URI Routing Questions/Possibilities - by El Forum - 02-24-2011, 03:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB