Skip to content

Commit

Permalink
add some redirects (update nginx.conf)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Najmabadi committed Oct 28, 2024
1 parent 6155cac commit e366439
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions liara_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,77 @@ location ~ ^/app-deploy/[^/]+/update/?$ {
return 301 /paas/update;
}


# Other Redirects (based on Google Search Console)
location ~ ^/instructions/blitzjs/?$ {
return 301 /paas/nodejs/related-apps/blitzjs;
}

location ~ ^/paas/dotnet/how-tos/set-logs/?$ {
return 301 /paas/dotnet/how-tos/manage-logs;
}

location ~ ^/object-storage/how-tos/connect-via-platform/golang/?$ {
return 301 /paas/dotnet/how-tos/manage-logs;
}

location ~ ^/app-deploy/vue/domain/?$ {
return 301 /paas/domains/add-domain;
}

location ~ ^/object-storage/how-tos/migrate-from-file-service/?$ {
return 301 /object-storage/about;
}

location ~ ^/email/tag-email/?$ {
return 301 /email-server/how-tos/use-tags;
}

location ~ ^/client-api/app/?$ {
return 301 /references/api/about;
}

location ~ ^/storage/disks/transfer-to-bucket/?$ {
return 301 /paas/disks/move-files-to-bucket;
}

location ~ ^/one-click-apps/uptime-kuma/?$ {
return 301 /one-click-apps/uptime-kuma/quick-start/;
}

location ~ ^/one-click-apps/varnish%20cache/quick-start/?$ {
return 301 /one-click-apps/varnish/quick-start;
}

location ~ ^/one-click-apps/jupyter%20notebook/quick-start/?$ {
return 301 /one-click-apps/jupyter-notebook/quick-start;
}

location ~ ^/one-click-apps/jupyter%20notebook/quick-start/?$ {
return 301 /one-click-apps/jupyter-notebook/quick-start;
}

location ~ ^/storage/object-storage/increase-size/?$ {
return 301 /object-storage/details/change-plan;
}

location ~ ^/one-click-apps/apache%20answer/quick-start/?$ {
return 301 /one-click-apps/apache-answer/quick-start;
}

location ~ ^/one-click-apps/code%20server/quick-start/?$ {
return 301 /one-click-apps/vscode/quick-start;
}

location ~ ^/storage/object-storage/backup-restore/?$ {
return 301 /object-storage/how-tos/create-backup-using-rclone;
}

location ~ ^?$ {
return 301 /object-storage/how-tos/create-backup-using-rclone;
}


# Domain
location ~ ^/domains/management(?:/.*)?$ {
return 301 /paas/domains/add-domain/;
Expand Down

0 comments on commit e366439

Please sign in to comment.