OVHcloud Community

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

URL rewriting at OVH


#1

I use .htaccess to rewrite my URL. When I put my site online at o2switch (web host) it works very well. But when I put my website online at OVH, some rewrites don’t work. The last two rewrites don’t work. I stay on the contact page and the correct URL is displayed (contact/freelance). Could someone please tell me where the mistake is?

RewriteEngine On
RewriteRule     ^$                                      /index.php                                              [L]

RewriteRule     ^fonctionnement$                        /fonctionnement.php                                     [L]

RewriteRule     ^contact$                               /contact.php                                            [L]

RewriteRule     ^contact/entreprise$                    /contact.php?contact=su                                 [L]

RewriteRule     ^contact/freelance$                     /contact.php?contact=fl