Hi,
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
SetEnv REGISTER_GLOBALS 0
RewriteEngine On
RewriteBase /
DirectoryIndex views/index.php
Options -Indexes
RewriteRule ^test views/test5.php
I also tried to do something like:
`RewriteRule ^google https://www.google.pl`
to check if it will redirect me to google, but it doesn't.
When I`m trying to go to **mypage.pl/test** or **mypage.pl/google** 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.
Web Hosting - RewriteRule in .htaccess doesn't work
Related questions
- Update MySQL Version
12949
14.02.2018 03:27
- How do I limit upload_max_filesize? PHP.ini method not working
12624
06.12.2022 11:02
- Max_execution_time how to increase time
12501
24.01.2021 17:14
- Connect to mysql database
12290
28.02.2018 16:52
- I can't login to my account. Reset password don't help
11842
25.02.2020 22:06
- Layer 7 DDoS protection on Web hosting
11413
17.08.2025 13:59
- Cannot put SSL on my domain
11319
03.04.2019 19:20
- Abuse Report not working
10633
27.03.2025 07:45
- How do I get rid of the default 'site under construction' page?
10312
27.10.2022 14:35
- Trying to connect my OVH domain to shopify store
9433
13.06.2021 22:43