• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
routing issue

#1
[eluser]rsmarsha[/eluser]
I'm working on my first CI project and am having a few issues with the routing.

My .htaccess (taken from the CI user guide) is :
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|assets|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]

My default controller is set to index which works fine. I have an about page which I can get to via /index/about. I'm guessing I have to modify my .htaccess to get rid of the index in that case.

I also have an admin controller in /application/controllers/admin named dashboard.php

I have set a route to:

Code:
$route['admin'] = 'admin/dashboard';

Which doesn't seem to work and I can't seem to work out what I'm doing wrong. I'll continue trying to work it out but any advice is much appreciated as I'm sure it's something obvious I'm missing.

thanks

#2
[eluser]rsmarsha[/eluser]
Apologies to all. Smile

I had a typo in my controller name and had to take a break from the PC for a while to spot it.

Thanks to anyone who was looking at my post.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.