Tagged: enfold, maintenance
Hi!
Have used a Maintenace Plugin before, but now I want to implement some cachingmodules, so I have build a Maintenance Page with Enfold itself.
Used a blank page, no header, no footer, no sidebar.
In the Theme options I set the MaintenancePage as Frontpage.
The Problem: with http://domain.de it comes to Maintenance Page, fine. But with http://domain.de/x or home or anything else, it comes to Page 404.
How can I redirect every 404 Page to http://domain.de ??
Can´t see a usable 404 URL, that I can use for redirection, in the Browser, if I stay on it…
I´ve installed the Plugin Redirect 301.
Regards
Hey, please close this topic.
If anybody have the same problem, I found the following method.
Open your 404.php (inside Enfold) and insert the following code on top:
<?php
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: “.get_bloginfo(‘url’));
exit();
?>
Now it redirects every 404 to http://domain.com
Erase it after Maintenance is finished…