Skip to content

Add a redirect to your domain with RevasOS

With RevasOS you can add redirect rules that can redirect traffic between different pages or subdomains.

Before proceeding, make sure you understand these concepts:

Before proceeding, make sure you understand these concepts:

Add a redirect

  1. Go to the Websites app: https://themes.eu1.revas.app.
  2. From the list of websites, choose the one you want to add a redirect to. Redirects can only be added to websites that have a domain connected. If you still need to connect your domain, follow the steps in this guide first and then come back here.
  3. Under the website name, click the domain name to access the linked domains page.
  4. Click the cogwheel button on the tab of the domain you want to configure and click "Edit".
  5. The domain management page will open. Click the "Create rule" button and choose the type of redirect rule you want to add:
    • Redirect between different domains: choose this type if you want to redirect from one domain to another domain (e.g. from mysite.it to anothersite.it), or from a domain to a subdomain (e.g. from mysite.it to www.mysite.it),
    • Redirect between pages of a site: choose this type if you want to redirect between pages of the same site (e.g. from mysite.it/contacts to mysite.it/contactme),
    • Advanced configuration: choose this type to manually create regular expressions to identify and modify URLs for redirects.
  6. If you have chosen the redirect between different domains, enter an identifying title for the rule, then, in the two fields below, the starting domain (e.g.: sitoweb.com) and the domain to which you want to redirect the visitor who visits that domain (e.g.: ciao.sitoweb.com), then click "Save".
  7. If you have chosen the redirect between pages of a site, enter an identifying title for the rule, then, in the two fields below, the starting page (e.g.: /en-us/chi-siamo) and the page to which you want to redirect the visitor who visits that page (e.g.: ciao.sitoweb.com), then click "Save".
  8. If you have chosen the advanced configuration instead:
    1. Enter an identifying title for the rule,
    2. Write the rule to identify incoming requests. This rule allows you to identify the URLs you want to replace. Write it like this (replace the parts inside the square brackets, including the parentheses): matches(http.request.url.path, "^[the-parts/to-select]"),
    3. Write the redirect expression. This rule defines the rules for calculating the new destination of the redirect. Write it like this (replace the parts inside the square brackets, including the parentheses): regex_replace(http.request.url.path, "^[the-parts/to-replace](.*)", "[/the-new/value]$1"),
    4. Choose whether to preserve the URL query string during the redirect. If you don't select these options, any string other than the path will be removed,
    5. Define the redirect code to be inserted in the header to tell browsers and crawlers what kind of redirect is being performed. By default, the redirect that is performed is a 301 redirect.
  9. Click "Save".

RevasOS