Welcome Guest, Not a member yet? Register   Sign In
Disable a link possible?
#1

Hi,
I want to disable a link and route. Is it possible? i.e
PHP Code:
$route['test/admin'] = 'admin'

myproject.com/test/admin now going to myproject.com/admin, this is ok. But still myproject.com/admin link is working.

What i have need that disable the link so that no one can access through this link myproject.com/admin
The largest Bengali tutorial site on Web Development in this planet
Reply
#2

@rejoan

PHP Code:
$route['test/admin'] = 'admin' // go to controller admin via myproject.com/test/admin 
$route['admin'] = 'anythingYouWant' // if myproject.com/admin it leads to myproject.com/anythingYouWant 

anythingYouWant can be a 404 page
Reply




Theme © iAndrew 2016 - Forum software by © MyBB