Answer the question
In order to leave comments, you need to log in
How to correctly collect a redirect with a GET parameter?
Good afternoon.
In htaccess absolutely lamer. There is a conditional script site.com/project/ticket.php
A certain variable id
site.com/project/ticket.php?id=12345
is passed to it by the getom,
but the user should receive a link like site.com/project/ticket/12345
by
mail , please understand: what do I need to write in .htaccess so that this whole construction works correctly?
Answer the question
In order to leave comments, you need to log in
To itself:
RewriteEngine On
RewriteBase /
RewriteRule ^project/ticket/([^/]+)/?$ project/ticket.php?id=$1 [L,QSA]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question