I need to redirect an entire site to a specific controller (under_construction), but I do not want to put in all the pages a script to redirect.
I think, I might be able to do it in the .htaccess
or in the routes
of CodeIgniter.
In the .htaccess I do not know how to work with regex
or how to do it.
With routes
I have tried the following:
$route['index.php/test'] = "under_construction";
But this doesn't work. Does not shows any response, doesn´t do anything of
that I expected, that all pages go to the under_construction
controller.
I want to make this for a lot of controllers. Is there an easy way of doing this with regex
?