FvG Posted October 11, 2013 Share Posted October 11, 2013 Hey! I'm looking for a way to make all site but /admin non-accessible. So if people try to access a site which is not /admin they should be redirected. What's the way to do it? Are there any hooks I can use to get this done? Or is .htaccess the way to go? Thanks for your help! Link to comment Share on other sites More sharing options...
Nicolas Posted October 11, 2013 Share Posted October 11, 2013 Hi FvG, Maybe you could use the Maintenance mode module wich just do that. Regards Link to comment Share on other sites More sharing options...
FvG Posted October 11, 2013 Author Share Posted October 11, 2013 Thanks! Just did something similar if ($user->isGuest()) { $session->redirect($config->urls->admin); } Link to comment Share on other sites More sharing options...
Pete Posted October 11, 2013 Share Posted October 11, 2013 I'm also interested as there is one scenario for an intranet that I've got in my head where it wouldn't be a bad idea to have the whole thing as Process modules in the backend and simply not have a frontend. The only problem there is that you still have to have the root page I guess, but it would be good to make something like /login/ the default page in this scenario and run the admin from just the root instead of /processwire/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now