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.
RewriteRule in .htaccess doesn't work
Related questions
- Update MySQL Version
12278
14.02.2018 03:27
- How do I limit upload_max_filesize? PHP.ini method not working
11957
06.12.2022 11:02
- Max_execution_time how to increase time
11894
24.01.2021 17:14
- Connect to mysql database
11601
28.02.2018 16:52
- I can't login to my account. Reset password don't help
11227
25.02.2020 22:06
- Cannot put SSL on my domain
10741
03.04.2019 19:20
- Layer 7 DDoS protection on Web hosting
10686
17.08.2025 13:59
- Abuse Report not working
10043
27.03.2025 07:45
- How do I get rid of the default 'site under construction' page?
9703
27.10.2022 14:35
- Trying to connect my OVH domain to shopify store
8959
13.06.2021 22:43