• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URI Routes Issue

Hi Everyone,
I am using routes in my website to push everything to a single controller like this:

$routes['(:any)/(:any)'] = "website/$1_$2";

This works perfectly fine so its great, but there seems to be one slight problem if you do this:

you get redirected to my 404 page. That does make sense, because I don't have a function with a hash in it. On a normal (non-routed) page, the # would just refresh the current page, you wouldn't have Apache or anything trying to redirect the page.

Anyone see this before or have a workaround?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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