G
G
generate2022-02-28 15:27:25
PHP
generate, 2022-02-28 15:27:25

GET parameter not passed with htaccess settings?

Specified so in htacces, everything works if you go to site.com/category/pc
But if you pass get parameters site.com/category/pc?price=600
Then the price is not transferred to get how to make it pass?

RewriteRule ^category/([^/]*)$ category.php?id=$1 [L]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2022-02-28
@generate

[L,QSA]
QSA - saves get parameters.
DON'T forget that from the point of view of mod_rewrite GET is not part of the url at all and is allocated at all through
QUERY_STRING
. Again, what you are doing looks like a crooked CNC craft

F
FanatPHP, 2022-02-28
@FanatPHP

The traditional question, what the hell am I doing wrong?
Why does Google give me 100500 answers for the title of the question, and generate shows a fat muzzle to my friend?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question