A
A
Anton2016-02-27 02:51:17
Apache HTTP Server
Anton, 2016-02-27 02:51:17

How to make a redirect with a get request in .htaccess?

Hello! There is a link like example.com&refresh=true, you need to make a redirect from it to the main one. Tried this option - does not work.

RewriteCond %{QUERY_STRING} ^refresh=true
RewriteRule ^ /? [R=301,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2016-02-29
@shambler81

you have a steering error.
https://donatstudios.com/RewriteRule_Generator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question