Page 1 of 1
Using tags in maintenance mode site down message
Posted: Mon Nov 26, 2018 5:05 pm
by johnboyuk1
I was hoping to use a redirect tag in the maintenance mode message in order to redirect to a temporary page -
{redirect_url to='temporary.html'}
Doesnt seem to work though - anyone know how I can achieve this?
Re: Using tags in maintenance mode site down message
Posted: Mon Nov 26, 2018 5:50 pm
by DIGI3
It only worked for me with by adding a forced refresh to the page, so perhaps it's a bit buggy when used in this context.
One option could be to just put a meta refresh as your sitedown message:
Code: Select all
<meta http-equiv="refresh" content="0;URL='http://newsite.com/'" />
Ideally you should make it a full html template and put that in the <head> but it may work fine with just that. Test on multiple browsers/devices.
Re: Using tags in maintenance mode site down message
Posted: Mon Nov 26, 2018 6:13 pm
by Rolf
You can add the meta refresh line to the "Page Specific Metadata" box of your error 404 page.
Re: Using tags in maintenance mode site down message
Posted: Tue Nov 27, 2018 9:19 am
by johnboyuk1
thanks guys. I ended up using a bit of javascript straight into the text window - which I assumed wouldnt work because the smarty tag didnt work, but it did, so does the job it needs to!
Thanks!