routing issue |
[eluser]jmadsen[/eluser]
This has to be something simple and stupid and I'm just staring at it too hard. My main countroller/function/param is "site/page/my_param" (i.e., "http://localhost/smcms_seo/site/page/check_home_url/") I want to be able to use: http://localhost/smcms_seo/site/page/check/home/url/ <--- this is working http://localhost/smcms_seo/site/page/check_home_url/ <--- this is working http://localhost/smcms_seo/check_home_url/ <--- this is working http://localhost/smcms_seo/check/home/url/ <--- this is NOT I need this last one to work as well, but it just...isn't. It gives a "not directing properly" timeout. (Don't worry about the last case $path variable - it is what makes "http://localhost/smcms_seo/check_home_url/" work. Yes, I could write some dynamic code to add any number of (:any)'s, but not really a concern right now) Code: $route['site/page/(:any)/(:any)/(:any)'] = "site/page/$1_$2_$3"; my .htaccess looks like this (but I've tried simpler versions and no change) Code: #check mod_rewrite is enabled Thanks!
[eluser]jmadsen[/eluser]
:ahhh: where are the little cursing emoticons? sorry, the code above is okay - traced it to some internal controller routing issues |
Welcome Guest, Not a member yet? Register Sign In |