Learn how to create proxies and redirects for a specific route
/example-proxy
that
proxies requests to deco.cx and a route /example-redirect
that redirects to
the homepage of google.com. Note the difference: the first will keep you within
the same domain, while the latter will take you outside the domain of your site.
redirects
page. This allows access to redirect creation.
permanent
or temporary
)Choose the type astemporary
when the redirect may change over time. If the redirect should not change over time, you can selectpermanent
(which may result in faster responses, as permanent redirects are cached by the user’s browser).
https://your-site.deco.site/example-redirect
and check if
the redirect is working correctly.
Route Maps
.
Then:
redirect.csv
to the project’s base. It should have the
indicated format below:
redirectsFromCsv.ts
.
redirect.csv
as the redirects file.