File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ http {
92
92
return 401 ;
93
93
}
94
94
95
+ # Pass sendsnapshot.aspx to bf2statistics.php
96
+ location ~ ^/ASP/sendsnapshot\.aspx$ {
97
+ rewrite /ASP/(.*)\.aspx /ASP/bf2statistics.php last ;
98
+ }
99
+
95
100
# Pass .aspx to php
96
101
location ~ ^/ASP/.*\.aspx$ {
97
102
rewrite /ASP/(.*)\.aspx /ASP/index.php?aspx=$1 last ;
Original file line number Diff line number Diff line change 23
23
RewriteCond %{REQUEST_FILENAME} !-f
24
24
RewriteCond %{REQUEST_FILENAME} !-d
25
25
26
+ # Redirect sendsnapshot ASPX file call to the regular snapshot endpoint (bf2statistics.php)
27
+ RewriteRule ^.*/sendsnapshot\.aspx$ bf2statistics.php [L,NC]
28
+
29
+ # Don't redirect direct links to non-existent files or directories to the index.php
30
+ RewriteCond %{REQUEST_FILENAME} !-f
31
+ RewriteCond %{REQUEST_FILENAME} !-d
32
+
26
33
# Redirect all ASPX file calls to the index.php?aspx=ASPX_FILENAME
27
34
RewriteRule ^(.*)\.aspx$ index.php?aspx=$1 [QSA,L]
28
35
You can’t perform that action at this time.
0 commit comments