Redirecting HTTP Addresses

Discover our Public Cloud offer

Shared Hosting for Everyone, imagined by developers, for developers.

Discovering the Public Cloud

Go to the Web > Sites > Add a site menu.

Administration interface: list of sites
Administration interface: list of sites
  • Name: used for display purposes in the alwaysdata administration interface, it is purely for information purposes,
  • Addresses: the addresses used to reach your site (*.example.org for catch-all),
Add a site: general
Add a site: general
  • Type: Redirect,
  • Destination URL: address that the redirect leads to,
  • Type of redirect:
    • permanent (HTTP code 301): for conventional use, redirects a visitor from an address A to an address B. Search engines will update their index with the new destination,
    • temporary (HTTP code 302): generally used during site maintenance. The search engines retain the original page in their index,
    • “transparent” or “invisible”: redirects the original address to the destination address but retains the original address as the URL. It uses frames with content that will not be indexed by most search engines so referencing will therefore be less effective.
  • Add the request path to the destination URL.
Add a site: redirect
Add a site: redirect

Redirect via Apache

For PHP sites, static files and custom Apache sites you can also use a .htaccess file and the Redirect directive.

Redirect via uWSGI

For Python WSGI, Ruby Rack and Ruby on Rails <= 2.x sites, you can also use the InternalRouting method and its router-redirect plugin in the advanced site configuration.