• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Routing Issues - $route['(:any)/(:any)'] at the end disturbing other routes

#1
Adding the below routing causing the header to replicate multiple times in the home page and previously used routing pages with single term also not working.

$route['page'] = 'home/page'; //not working
$route['(:any)/(:any)'] //these are working and it is effecting others.

and I am adding it in the end. but the page keeps on loading and hangs.
Reply

#2
Make sure that it is the last route defined, that's because it's a catch all route.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#3
Yes, I am adding it as the last route and it happen to work in my local so replaced whole code with my local code. It's working now but didn't what caused this problem. Thank you for your response.
Reply

#4
Some files could have gotten corrupted.

This has happened to be a few times.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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