Base de conhecimento

1000 perguntas frequentes, 500 tutoriais e vídeos explicativos. Aqui, você encontra apenas soluções!

Fix a URL redirection/rewriting issue

This guide explains how to enable the MultiViews option via a .htaccess file on sites hosted by Infomaniak.

 

Preamble

  • In some cases, the MultiViews option must be enabled to manage redirection and URL rewriting issues.
  • This option allows the server to guess which file the user is looking for. Example:
    • If the configuration folder and the configuration.php file are located at the root of your site and you try to access the address domain.xyz/configuration, the MultiViews option must be enabled for the server to guess that you want to access the configuration.php file.
  • The MultiViews option can sometimes conflict with more complex URL rewriting rules defined by mod_rewrite (used by many CMS).

 

Enable the MultiViews option

To do this:

  1. Open or create the .htaccess file located at the root of the affected site.
  2. Add the following directive:

    Options +MultiViews
  3. Save the changes.

Link para esta FAQ: https://faq.infomaniak.com/605


Esta seção de perguntas frequentes foi útil?