D
D
Dolosweb2020-07-14 21:22:59
htaccess
Dolosweb, 2020-07-14 21:22:59

CNC search .htaccess?

I have a simple CNC on my site

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [L]


I want to organize a search in GET like this /search?search=hat

but GET php does not see, it displays empty.

How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-07-14
@Dolosweb

You need to add the QSA flag.
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question