Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
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
configurationfolder and theconfiguration.phpfile are located at the root of your site and you try to access the addressdomain.xyz/configuration, the MultiViews option must be enabled for the server to guess that you want to access theconfiguration.phpfile.
- If the
- 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:
- Open or create the
.htaccessfile located at the root of the affected site. Add the following directive:
Options +MultiViews- Save the changes.
Link to this FAQ: