sarkfultion
⌂
›
wp-content
›
plugins
sarkfultion
7 dreads
↑ redisq
📁
classic-editor/
dreads
sarkfultion
dreads
📁
classic-widgets/
dreads
sarkfultion
dreads
📁
easy-table-of-contents/
dreads
sarkfultion
dreads
📁
litespeed-cache/
dreads
sarkfultion
dreads
📁
wplegalpages/
dreads
sarkfultion
dreads
📄
index.php
28 B
sarkfultion
dreads
📄
static-404.php
343 B
sarkfultion
dreads
redisq: static-404.php
<?php /** * Plugin Name: Static 404 * Description: Returns a static 404 response for non-existent URLs. * Version: 1.0 * Author: Wasif Laeeq */ add_action('template_redirect', 'static_404_response'); function static_404_response() { if (is_404()) { wp_die('Page not found.', 'Not Found', array('response' => 404)); } }
sarkfultion