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

I also need this functionality. But an addition that I want to achieve:
if i have a controller with name admin and I call the index method via domain/admin, but I want to disable url requests by domain/admin/index
How can I do that?
Reply
#3

@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