]> git.openstreetmap.org Git - nominatim.git/commitdiff
Change to regular regex group
authorotbutz <tbutz@optitool.de>
Tue, 24 May 2022 09:32:59 +0000 (11:32 +0200)
committerGitHub <noreply@github.com>
Tue, 24 May 2022 09:32:59 +0000 (11:32 +0200)
docs/admin/Setup-Nominatim-UI.md

index 02ff7df107d5013a0a98ac4ed5a313b2ced0fd4a..7f0126603a80380cd826908b5c6a4cb6f78ac903 100644 (file)
@@ -163,14 +163,14 @@ directory like this:
 
   # If format-html is explicity requested, forward to the UI.
   RewriteCond %{QUERY_STRING} "format=html"
 
   # If format-html is explicity requested, forward to the UI.
   RewriteCond %{QUERY_STRING} "format=html"
-  RewriteRule ^([^/]+)(?:.php)? ui/$1.html [R,END]
+  RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
 
   # If no format parameter is there then forward anything
   # but /reverse and /lookup to the UI.
   RewriteCond %{QUERY_STRING} "!format="
   RewriteCond %{REQUEST_URI}  "!/lookup"
   RewriteCond %{REQUEST_URI}  "!/reverse"
 
   # If no format parameter is there then forward anything
   # but /reverse and /lookup to the UI.
   RewriteCond %{QUERY_STRING} "!format="
   RewriteCond %{REQUEST_URI}  "!/lookup"
   RewriteCond %{REQUEST_URI}  "!/reverse"
-  RewriteRule ^([^/]+)(?:.php)? ui/$1.html [R,END]
+  RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
 </Directory>
 ```
 
 </Directory>
 ```