| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | $location = $this->getLocation(str_replace($absolutePath, '/', $directory)); |
| 31 | 31 | |
| 32 | - $content = "location ~ \"$location\" {\n"; | |
| 32 | + $content = "location $location {\n"; | |
| 33 | 33 | $content .= "rewrite ^([^?]*)$ /index.php?uamfiletype=$objectType&uamgetfile=$1 last;\n"; |
| 34 | 34 | $content .= "rewrite ^(.*)\\?(((?!uamfiletype).)*)$ "; |
| 35 | 35 | $content .= "/index.php?uamfiletype=$objectType&uamgetfile=$1&$2 last;\n"; |
| 36 | 36 | $content .= "rewrite ^(.*)\\?(.*)$ /index.php?uamgetfile=$1&$2 last;\n"; |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | |
| 39 | 39 | return $content; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - public function getFileNameWithPath(?string $directory = null): string | |
| 42 | + public function getFileNameWithPath(string $directory = null): string | |
| 43 | 43 | { |
| 44 | 44 | return ABSPATH . self::FILE_NAME; |
| 45 | 45 | } |
| 46 | 46 | |