A
A
Alya Caribbean2018-03-05 19:44:33
htaccess
Alya Caribbean, 2018-03-05 19:44:33

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

1 answer(s)
A
Alya Caribbean, 2018-03-05
@karibskaya

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 question

Ask a Question

731 491 924 answers to any question