Is it possible to redirect to a custom page if user doesn't have permission to view a page?
PermalinkIs there a way to redirect to a custom page?
The developer of the add-on said it doesn't do it at the moment, but it could be added.
It's in \concrete\dispatcher.php line 190. I replaced the contents of the switch case with a redirect.
switch($cp->getError()) { case COLLECTION_FORBIDDEN: header( 'Location: '.YOUR_CUSTOM_LOCATION ); /* $v = View::getInstance(); $v->setCollectionObject($c); $v->render('/page_forbidden'); */ break; }
http://www.concrete5.org/marketplace/addons/url-director/...
You'd have to contact the developer to check for sure.