D
D
Dmitry Vasechka2017-11-01 04:28:00
URL Handling
Dmitry Vasechka, 2017-11-01 04:28:00

How to send multiple GET values ​​to the CNC?

Good day!
There was such a problem:
there is a link with GETs /town.php?town=2&townN=novosibirsk
it is necessary to make a link like /town/novosibirsk , but in such a way that the town value is also passed through it.
Here's how I wrote it:
RewriteRule ^town/([-a-zA-Z0-9_]+)/? kupit-korochki.php?town=$2&townN=$1 [L]
This option doesn't work, doesn't pass town variable

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2017-11-01
@andrey004

your $2 variable is not defined.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question