Merged in feature/MAW-864-update-error-pages (pull request #48)

Feature/MAW-864 update error pages

* MAW-864: error page
This commit is contained in:
SRIRAM RAO TAKKALLAPELLY
2024-04-02 22:29:08 +00:00
parent 9c30c7c8fd
commit b70c605941
9 changed files with 928 additions and 729 deletions

View File

@@ -90,12 +90,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain-web;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -145,8 +139,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/$subdomain-web;
add_header Cache-Control "no-cache" always;
}
@@ -241,12 +235,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/www;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -296,8 +284,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/www;
add_header Cache-Control "no-cache" always;
}
@@ -392,12 +380,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/dev01;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -447,8 +429,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/dev01;
add_header Cache-Control "no-cache" always;
}

View File

@@ -99,12 +99,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
@@ -154,8 +148,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
@@ -276,8 +270,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/www;
}

View File

@@ -87,12 +87,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -141,8 +135,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
@@ -264,8 +258,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/www;
}

View File

@@ -86,12 +86,6 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
@@ -141,8 +135,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
@@ -263,8 +257,8 @@ data:
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/share/nginx/subdomain/www;
}

View File

@@ -1 +0,0 @@
No Access !!

File diff suppressed because one or more lines are too long

857
wp/500.html Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,53 @@
<?php
/**
* The template for 404 pages
*
* @package thbusiness
*/
get_header(); ?>
<div class="entry-content">
<div class="et-l et-l--post">
<div class="et_builder_inner_content et_pb_gutters3">
<div class="et_pb_section et_pb_section_0 pagetitle_section et_pb_with_background et_section_regular et_section_transparent">
<div class="et_pb_row et_pb_row_0 et_pb_equal_columns">
<div class="et_pb_column et_pb_column_2_5 et_pb_column_0 et_pb_css_mix_blend_mode_passthrough">
<div class="et_pb_module et_pb_text et_pb_text_0 et_pb_text_align_left et_pb_bg_layout_light">
<div class="et_pb_text_inner"><h1 class="small-h1">Page Not Found</h1>
<h2 class="red-heading fw600 pb1">Sorry, the page you are looking for cannot be found.</h2>
</div>
</div> <!-- .et_pb_text -->
<div class="et_pb_module et_pb_text et_pb_text_1 et_pb_text_align_left et_pb_bg_layout_light">
<div class="et_pb_text_inner"><p>The link you followed may be broken or the page may have been removed.</p></div>
<p style="padding: 20px 0 20px 0px;">Need further assistance? Call us at <a href="<?php echo do_shortcode('[op]'); ?>" ><?php echo do_shortcode('[op]'); ?></p>
<a class="btn" href="/"> Home </a>
</div> <!-- .et_pb_text -->
</div> <!-- .et_pb_column -->
<div class="et_pb_column et_pb_column_3_5 et_pb_column_1 et_pb_css_mix_blend_mode_passthrough et-last-child et_pb_column_empty">
</div> <!-- .et_pb_column -->
</div> <!-- .et_pb_row -->
</div> <!-- .et_pb_section --> <!-- .et_pb_section -->
<div><!-- .et_pb_row -->
</div> <!-- .et_pb_section -->
</div><!-- .et_builder_inner_content -->
</div><!-- .et-l -->
</div>
</div><!-- #primary -->
<?php get_footer(); ?>
<style>
.et-db #et-boc .et-l div.et_pb_section.et_pb_section_0 {background-position: top right;background-blend-mode: darken;background-image: url(/wp-content/uploads/2022/01/home-System_hero2.jpg) !important;}
.et-db #et-boc .et-l .et_pb_section {padding: unset;}
.btn {
color: #ffffff !important; display: inline-block;box-shadow: -4px 5px 5px 0px rgba(0,0,0,0.3);
transition: color 300ms ease 0ms,background-color 300ms ease 0ms,border 300ms ease 0ms;
border-width: 1px !important;
border-color: #E02B20;
font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif !important;
font-weight: 500 !important;
background-color: #d50032;
}
</style>

View File

@@ -1,32 +0,0 @@
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package thbusiness
*/
get_header(); ?>
<div class="col-xs-12 col-sm-12 col-md-12">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title">Oops! That page cant be found.</h1>
</header><!-- .page-header -->
<div class="page-content">
<p>It looks like nothing was found at this location. Try one of the links below or call us at<strong> 1-800-800-2537</strong>.</p>
<p><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Medical Alert Home Page</a></p>
<p><a href="<?php bloginfo('url'); ?>/how-medical-alert-works">How a Medical Alert System Works</a></p>
<p><a href="<?php bloginfo('url'); ?>/order-medical-alert">Order a Medical Alert System</a></p>
<!--<?php get_search_form(); ?>-->
</div><!-- .page-content -->
</section><!-- .error-404 -->
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .col-xs-12 col-sm-12 col-md-12 -->
<?php get_footer(); ?>