mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-09-12 21:07:38 +02:00
feat: add URL redirection rules
This commit is contained in:
+15
@@ -43,6 +43,21 @@ http {
|
||||
return 301 /uk$1;
|
||||
}
|
||||
|
||||
if ($request_uri ~ ^/en/?(\?.*)?$) {
|
||||
return 301 /$1;
|
||||
}
|
||||
if ($request_uri ~ ^/en/(.+)$) {
|
||||
return 301 /$1;
|
||||
}
|
||||
|
||||
if ($request_uri ~ ^(/(?:ar|be|da|de|es|fr|id|it|ko|nl|pt|ru|sk|sv|tr|vi|zh|zh-TW|uk|ja))?/src/pages/([a-z0-9][a-z0-9-]*)\.html(\?.*)?$) {
|
||||
return 301 $1/$2$3;
|
||||
}
|
||||
|
||||
if ($request_uri ~ ^(/(?:ar|be|da|de|es|fr|id|it|ko|nl|pt|ru|sk|sv|tr|vi|zh|zh-TW|uk|ja))?/change-text-color(?:\.html)?/?(\?.*)?$) {
|
||||
return 301 $1/text-color$2;
|
||||
}
|
||||
|
||||
if ($request_uri ~ ^/tools/$) {
|
||||
return 301 /tools;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user