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
- I can't login to my account. Reset password don't help
3387
25.02.2020 22:06
- Max_execution_time how to increase time
3377
24.01.2021 17:14
- Update MySQL Version
3128
14.02.2018 03:27
- How do I limit upload_max_filesize? PHP.ini method not working
2520
06.12.2022 11:02
- Connect to mysql database
2488
28.02.2018 16:52
- Cannot put SSL on my domain
2457
03.04.2019 19:20
- Why can not connect my domain name with my host in ovh?
2121
09.01.2020 09:13
- Trying to connect my OVH domain to shopify store
2074
13.06.2021 22:43
- Increase PHP Post Max Size and PHP Time Limit
1880
20.09.2023 07:11
- Launching the free e-mail account and 10M hosting for a domain impossible
1854
04.11.2018 01:14