Problème avec .htaccess
... / Problème avec .htaccess
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
question

Problème avec .htaccess

Par
JonathanM13
Créé le 2019-08-14 14:07:32 (edited on 2024-09-04 13:32:12) dans Hébergement Web-old

Bonjour,

Je rencontre un problème ! Je suis passé d'un hébergement (plesk) sur un hébergement web pro de OVH.

Sans .htaccess, je peux accéder à des url de type : https://www.exemple.com/index ; au lieu de https://www.exemple.com/index.php => Déjà étonnant !

Ensuite j'ai ajouté cette ligne dans mon .htaccess :
`RewriteRule ^activites/(.*)/(.*)$ activites.php?act_titre=$1&act_id=$2`
Mais alors, problème... sa m'affiche bien la page "activites.php" mais ce qui suit (les _GET) n'est pas pris en compte sauf quand je tape l'url php.

Auriez-vous une idée du pourquoi du comment svp ?
Le support client ne peut pas me répondre...

Je vous remercie d'avance.


1 réponse ( Latest reply on 2019-08-14 15:14:17 Par
JonathanM13
)

regarde avec `%{REQUEST_URI}` et/ou un drapeau [QSA] (https://httpd.apache.org/docs/2.4/fr/rewrite/flags.html)

J'ai regardé, mais déjà tout testé et fonctionne pas du tout :-/

J'ai trouvé la solution. Merci tout de même.