diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..2f89814b --- /dev/null +++ b/.htaccess @@ -0,0 +1,13 @@ +# error redirect +ErrorDocument 400 https://jpmorganchase.github.io/error/400.htm +ErrorDocument 401 https://jpmorganchase.github.io/error/401.htm +ErrorDocument 403 https://jpmorganchase.github.io/error/403.htm +ErrorDocument 404 https://jpmorganchase.github.io/error/404.htm +ErrorDocument 500 https://jpmorganchase.github.io/error/500.htm +ErrorDocument 503 https://jpmorganchase.github.io/error/503.htm +Options -Indexes +RewriteEngine On +RewriteCond %{HTTPS} off +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + + diff --git a/Gemfile.lock b/Gemfile.lock index 91cd9f73..f0e25ae7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -193,14 +193,14 @@ GEM rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9.7) mercenary (0.3.6) - mini_portile2 (2.5.0) + mini_portile2 (2.8.0) minima (2.1.1) jekyll (~> 3.3) minitest (5.10.3) multipart-post (2.0.0) net-dns (0.8.0) - nokogiri (1.11.1) - mini_portile2 (~> 2.5.0) + nokogiri (1.13.6) + mini_portile2 (~> 2.8.0) racc (~> 1.4) octicons (5.0.5) nokogiri (>= 1.6.3.1) @@ -209,7 +209,7 @@ GEM pathutil (0.16.1) forwardable-extended (~> 2.6) public_suffix (2.0.5) - racc (1.5.2) + racc (1.6.0) rb-fsevent (0.10.2) rb-inotify (0.9.10) ffi (>= 0.5.0, < 2) diff --git a/error/400.html b/error/400.html new file mode 100644 index 00000000..61fce852 --- /dev/null +++ b/error/400.html @@ -0,0 +1,25 @@ +--- +layout: post +--- + + + +
+

400

+ +

Bad Request

+

How weird ! The website you requested couldn't understand the request sent by you.

+
diff --git a/error/401.html b/error/401.html new file mode 100644 index 00000000..9d600faf --- /dev/null +++ b/error/401.html @@ -0,0 +1,25 @@ +--- +layout: post +--- + + + +
+

401

+ +

Authentication Required

+

The requested page cannot be accessed without proper authentication.

+
diff --git a/error/403.html b/error/403.html new file mode 100644 index 00000000..215379a9 --- /dev/null +++ b/error/403.html @@ -0,0 +1,25 @@ +--- +layout: post +--- + + + +
+

403

+ +

Forbidden

+

The website's configuration prevents you from accessing this page.

+
diff --git a/error/404.html b/error/404.html new file mode 100644 index 00000000..76a19e04 --- /dev/null +++ b/error/404.html @@ -0,0 +1,25 @@ +--- +layout: post +--- + + + +
+

404

+ +

Page not found

+

The requested page could not be found.

+
diff --git a/error/500.html b/error/500.html new file mode 100644 index 00000000..56aef984 --- /dev/null +++ b/error/500.html @@ -0,0 +1,25 @@ +--- +layout: post +--- + + + +
+

500

+ +

Internal Server Error

+

Something broke when loading the page requested by you.

+
diff --git a/error/503.html b/error/503.html new file mode 100644 index 00000000..da2e719e --- /dev/null +++ b/error/503.html @@ -0,0 +1,25 @@ +--- +layout: post +--- + + + +
+

503

+ +

Service Unavailable

+

Server is temporarily unavailable, Kindly check back in some time !

+