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

#1
[eluser]JCianflone[/eluser]
Hi Everyone,
I am using routes in my website to push everything to a single controller like this:

http://127.0.0.1/test/test1

Code:
$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:

http://127.0.0.1/test/test1#

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?

Thanks!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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