From d9e8e76aa90faf65643d06e0409aa9c7dbd7879c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Olender?= <92638966+TC-MO@users.noreply.github.com> Date: Thu, 27 Mar 2025 21:45:22 +0100 Subject: [PATCH] docs: add redirect and add new item to robots.txt add redirect from api/v2-new to api/v2 add api/v2-new to robots.txt --- nginx.conf | 4 ++++ static/robots.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index d466b7ae75..13c34f0bed 100644 --- a/nginx.conf +++ b/nginx.conf @@ -404,6 +404,10 @@ server { rewrite ^/api/v2/users-monthly-usage$ /api/v2/users permanent; rewrite ^/api/v2/users-account-and-usage-limits$ /api/v2/users permanent; + # api/v2-new to api/v2 + + rewrite ^/api/v2-new(.*)$ /api/v2$1 permanent; + # Actor marketing playbook addition rewrite ^/academy/get-most-of-actors$ /academy/actor-marketing-playbook permanent; diff --git a/static/robots.txt b/static/robots.txt index 2e754ce9c6..0d694268eb 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -2,3 +2,4 @@ User-agent: * Sitemap: https://docs.apify.com/sitemap.xml Disallow: https://docs.apify.com/api/v2-old Disallow: https://docs.apify.com/api/v2-redoc +Disallow: https://docs.apify.com/api/v2-new