Here is the part in gallery2/config.php that should be changed:Code: › /*
* Embedded mode. You can disable direct access to main.php (standalone G2)
* by setting this flag. Set value below to:
* true (without quotes) - block direct requests
* url (with quotes) - redirect requests to this url
* false (without quotes) - allow direct requests
*/
$gallery->setConfig('mode.embed.only', false);