rename p2

This commit is contained in:
Joey Kimsey
2025-02-03 12:30:10 -05:00
parent 20f09e6789
commit 98b2f8086c
29 changed files with 0 additions and 0 deletions

15
resources/htaccess.html Normal file
View File

@ -0,0 +1,15 @@
RewriteEngine On
RewriteBase {APP_WEB_ROOT}
# Intercepts other errors
RewriteRule ^errors/(.*)$ index.php?error=$1 [L,NC,QSA]
# Intercept all traffic not originating locally and not going to images or uploads
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
RewriteCond %{REMOTE_ADDR} !^\:\:1
RewriteRule ^(.+)$ {APP_WEB_ROOT}?url=$1 [QSA,L]
# Catchall for any non existent files or folders
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ {APP_WEB_ROOT}?url=$1 [QSA,L]";

12
resources/nginx.html Normal file
View File

@ -0,0 +1,12 @@
location /web/www/errors {
rewrite ^/web/www/errors/(.*)$ /web/www/index.php?error=$1 break;
}
location /web/www/ {
if ($remote_addr !~ "^127\.0\.0\.1"){
rewrite ^/web/www/(.+)$ /web/www/indexParser.php?local=false&url=$1 break;
}
if (!-e $request_filename){
rewrite ^/web/www/(.+)$ /web/www/indexParser.php?missing=true&url=$1 [QSA,L]";;
}
}