M
M
Magzhan Yeleup2016-12-05 12:55:08
htaccess
Magzhan Yeleup, 2016-12-05 12:55:08

How to define get requests in htaccess?

Hello World! There is a get request http://example.com/?page={some_parameter}
how can I make a redirect through htaccess when this type of get request comes in?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Magzhan Yeleup, 2016-12-06
@magzhan9292

# example.com/?page
RewriteCond %{QUERY_STRING} ^page
RewriteRule ^ /not_found? [R=302,L]
Decided like this, if there are better options?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question