I
I
Ivan Antonov2016-06-20 12:30:10
htaccess
Ivan Antonov, 2016-06-20 12:30:10

How to correctly compose a RedirectMatch?

Help, please, correctly to make RedirectMatch.
I need a redirect from
localhost/catalog/zhilaja_nedvizhimost/?i=3
to
localhost/catalog/zhilaja_nedvizhimost?i=3
I've been struggling for an hour now, I can't figure it out. Maybe you are smarter :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
imhuman, 2016-06-20
@antonowano

#upd. start
RewriteBase /
#upd. finish
RewriteCond %{REQUEST_URI} /$ [NC]
RewriteRule ^(.*)(/)$ $1 [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question