mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 19:07:55 +03:00
Merge pull request #2715 from otbutz/patch-2
Simplify apache rewrite rules
This commit is contained in:
commit
98fc528d8e
@ -163,22 +163,14 @@ directory like this:
|
|||||||
|
|
||||||
# If format-html is explicity requested, forward to the UI.
|
# If format-html is explicity requested, forward to the UI.
|
||||||
RewriteCond %{QUERY_STRING} "format=html"
|
RewriteCond %{QUERY_STRING} "format=html"
|
||||||
RewriteRule ^([^/]+).php ui/$1.html [R,END]
|
RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
|
||||||
# Same but .php suffix is missing.
|
|
||||||
RewriteCond %{QUERY_STRING} "format=html"
|
|
||||||
RewriteRule ^([^/]+) ui/$1.html [R,END]
|
|
||||||
|
|
||||||
# If no format parameter is there then forward anything
|
# If no format parameter is there then forward anything
|
||||||
# but /reverse and /lookup to the UI.
|
# but /reverse and /lookup to the UI.
|
||||||
RewriteCond %{QUERY_STRING} "!format="
|
RewriteCond %{QUERY_STRING} "!format="
|
||||||
RewriteCond %{REQUEST_URI} "!/lookup"
|
RewriteCond %{REQUEST_URI} "!/lookup"
|
||||||
RewriteCond %{REQUEST_URI} "!/reverse"
|
RewriteCond %{REQUEST_URI} "!/reverse"
|
||||||
RewriteRule ^([^/]+).php ui/$1.html [R,END]
|
RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
|
||||||
# Same but .php suffix is missing.
|
|
||||||
RewriteCond %{QUERY_STRING} "!format="
|
|
||||||
RewriteCond %{REQUEST_URI} "!/lookup"
|
|
||||||
RewriteCond %{REQUEST_URI} "!/reverse"
|
|
||||||
RewriteRule ^([^/]+) ui/$1.html [R,END]
|
|
||||||
</Directory>
|
</Directory>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user