Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite and CodeIgniter question
#8

[eluser]ChrisF79[/eluser]
[quote author="WanWizard" date="1284335754"]Something like
Code:
// route all combinations of alphanumeric/numeric:
$route['(:any)/(:num)'] = 'property/index/$1/$2';

// route Naples-Real-Estate to the naples method
$route['Naples-Real-Estate/(:num)'] = 'property/naples/$1';
[/quote]
I tried adding your suggestion to my routes.php file. I have the url helper autoloaded in the autoload file. However, when I then try to visit http://localhost:8888/ci/Naples-Real-Estate/20292846/ I'm getting a not found error. It says:
The requested URL /ci/Naples-Real-Estate/20292846/ was not found on this server.


Messages In This Thread
mod_rewrite and CodeIgniter question - by El Forum - 09-12-2010, 10:23 AM
mod_rewrite and CodeIgniter question - by El Forum - 09-12-2010, 10:40 AM
mod_rewrite and CodeIgniter question - by El Forum - 09-12-2010, 11:17 AM
mod_rewrite and CodeIgniter question - by El Forum - 09-12-2010, 11:59 AM
mod_rewrite and CodeIgniter question - by El Forum - 09-12-2010, 12:41 PM
mod_rewrite and CodeIgniter question - by El Forum - 09-12-2010, 12:55 PM
mod_rewrite and CodeIgniter question - by El Forum - 09-12-2010, 01:00 PM
mod_rewrite and CodeIgniter question - by El Forum - 09-13-2010, 12:32 PM
mod_rewrite and CodeIgniter question - by El Forum - 09-13-2010, 01:52 PM
mod_rewrite and CodeIgniter question - by El Forum - 09-13-2010, 05:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB