From 5bc277c6730a6804d18d26128e7075d2cafde943 Mon Sep 17 00:00:00 2001 From: "Kelly G. Allen" Date: Wed, 9 Jun 2021 09:49:17 -0700 Subject: [PATCH] Better. and fix redirect file MUST exist. --- RADPHE/.htaccess | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RADPHE/.htaccess b/RADPHE/.htaccess index 39ef252..8c69c04 100644 --- a/RADPHE/.htaccess +++ b/RADPHE/.htaccess @@ -60,7 +60,8 @@ # No Underscore Requests. # RewriteRule /?_.*/$ - [F] - RewriteRule /?_.*/$ / + RewriteRule ^/?_.*$ /-RADPHError404.php [NC,F,L] + RewriteRule ^.*/_.*$ /-RADPHError404.php [NC,F,L] # Make Site Map findable. not case sensitive except for the second argument. # RewriteRule ^sitemap\.xml$ Sitemap.xml [NC] @@ -79,7 +80,7 @@ # RewriteRule ^Resources/(.*?)/(PHP[0-9]{1,6})\-\_\-(.*?)\.(.*)$ /Resources/Resource.php?UID=$1 [L] #No using the _system folder - RewriteRule ^/?_system/.*$ /-RADPHError500.php [NC,F,L] + RewriteRule ^/?_system/.*$ /-RADPHError404.php [NC,F,L] #Skins and protected resources and virtual resources. RewriteCond %{REQUEST_FILENAME} !-f