OVH Community

Welcome to your community space. Ask questions, search for information, post content, and interact with other OVH Community members.

RewriteRule in .htaccess doesn't work


I’ve created a project on localhost and I`m trying to upload it to the ovh server.
Hovewer, the .htaccess doesn’t work correctly.
Options like DirectoryIndex or Options -Indexes does work, but RewriteRule doesn’t.
My .htaccess file:

SetEnv PHP_VER 7_4
RewriteEngine On
RewriteBase /

DirectoryIndex views/index.php
Options -Indexes

RewriteRule ^test views/test5.php

I also tried to do something like:
RewriteRule ^google
to check if it will redirect me to google, but it doesn’t.

When I`m trying to go to or I receive 404 Error:
Not Found
The requested URL was not found on this server.

On localhost (apache XAMPP) it works great, but on ovh it doesn’t.