35 lines
1.6 KiB
HTML
35 lines
1.6 KiB
HTML
title = "Page not found (404)"
|
|
url = "/404"
|
|
layout = "new/master-inside"
|
|
is_hidden = 0
|
|
robot_index = "index"
|
|
robot_follow = "follow"
|
|
==
|
|
<?php
|
|
use Illuminate\Support\Facades\Response;
|
|
|
|
function onStart()
|
|
{
|
|
$html = '
|
|
<div style="display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f4f4f9;">
|
|
<div style="text-align: center; background-color: #ffffff; border-radius: 12px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); padding: 40px; max-width: 500px; width: 100%; font-family: Arial, sans-serif;">
|
|
<h1 style="font-size: 40px; color: #f44336; margin-bottom: 20px;">' . __('Page Deleted') . '</h1>
|
|
<p style="font-size: 18px; color: #333333; margin-bottom: 30px;">' . __('We are sorry, but the page you are trying to access has been deleted.') . '</p>
|
|
<a href="/" style="padding: 12px 25px; background-color: #4CAF50; color: #fff; text-decoration: none; font-size: 16px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: background-color 0.3s;">
|
|
Go Back to Home
|
|
</a>
|
|
</div>
|
|
</div>';
|
|
|
|
// Add 'X-Robots-Tag' header to prevent indexing
|
|
return Response::make($html, 410)
|
|
->header('X-Robots-Tag', 'noindex, nofollow');
|
|
}
|
|
?>
|
|
==
|
|
<div style="padding-bottom: 50px;height: 55rem;">
|
|
<div style="padding: 10%;padding-top: 30px !important;">
|
|
<h1 style="font-size: 26px;">{{'Page not found'|_}}</h1>
|
|
<p style="font-size: 16px;padding-top: 10px;">{{'We are sorry, but the page you requested cannot be found.'|_}}</p>
|
|
</div>
|
|
</div> |