Skip to content

Commit

Permalink
Better. and fix
Browse files Browse the repository at this point in the history
redirect file MUST exist.
  • Loading branch information
kellygallen committed Jun 9, 2021
1 parent 2be62de commit 5bc277c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RADPHE/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 5bc277c

Please sign in to comment.