]> git.openstreetmap.org Git - nominatim.git/blobdiff - docs/admin/Setup-Nominatim-UI.md
simplify weigh_search() function
[nominatim.git] / docs / admin / Setup-Nominatim-UI.md
index 02ff7df107d5013a0a98ac4ed5a313b2ced0fd4a..cab2d2ed92fcbaaaeb611062c44f54fc9da78c25 100644 (file)
@@ -161,16 +161,16 @@ directory like this:
   # If no endpoint is given, then use search.
   RewriteRule ^(/|$)   "search.php"
 
-  # If format-html is explicity requested, forward to the UI.
+  # If format-html is explicitly 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"
-  RewriteRule ^([^/]+)(?:.php)? ui/$1.html [R,END]
+  RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
 </Directory>
 ```