S
S
sasha_pe2019-03-13 13:38:46
Apache HTTP Server
sasha_pe, 2019-03-13 13:38:46

How to apply Rewrite rule for a specific request?

There is a subdomain like site.domain.ru
All site.domain.ru/query/... requests should be redirected to site.domain.ru/... without query.
Tell me how to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-03-13
@sasha_pe

RewriteRule ^query/(.*) /$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question