Guide/suggestion for multistore maintenance pages.
A problem i faced was to have different layout and localized content. As speculated here (same for Magento2) it not possible out of the box, but it is.
The error processor accepts an parameter to change the error page template.
if (isset($_GET['skin'])) {
$this->_setSkin($_GET['skin']);
}
This can be passed via rewrite rule in .htaccess and needs no further changes. IMHO this should be documentated for multistore setups.
$_GET['skin'] parameter.maintenance.flag exists.htaccess:
RewriteCond %{DOCUMENT_ROOT}/var/.maintenance.flag -f
RewriteCond %{HTTP_HOST} ^sub.example.com$
RewriteCond %{QUERY_STRING} !(^|&)skin=sub(&|$) [NC]
RewriteRule ^ %{REQUEST_URI}?skin=sub [L]
copy files:
pub/errors/default/503.phtml to pub/errors/sub/503.phtmlpub/errors/default/css/styles.css to pub/errors/sub/css/styles.css(directory name has to match url parameter)
nginx setting should be added too.
We are re-organizing our unresolved GH issues into smaller, more focused projects, and have moved this to the the Installation and Configuration Documentation project.
Hi @meker12 How can I assign this issue to me?
@Ketika, only someone with write access to this repo can assign issues. I've assigned this to you.
@magento I am working on this