Welcome Guest, Not a member yet? Register   Sign In
Routing Issues - $route['(:any)/(:any)'] at the end disturbing other routes
#1

(This post was last modified: 06-22-2020, 06:58 AM by anirudh2133.)

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




Theme © iAndrew 2016 - Forum software by © MyBB