I
I
Insom842019-04-09 20:19:20
htaccess
Insom84, 2019-04-09 20:19:20

301 redirect from partition to static?

Hello! I have duplicate pages of this type http://site.ru/products/equitone-tectiva/equitone-tectiva.html and http://site.ru/products/equitone-tectiva/
If I make a standard redirect:
Redirect 301 / products/equitone-natura/sttp://site.ru/products/equitone-natura/description.html
then there is some kind of looping, but vice versa it works. But I need exactly this kind of page. Tell me how to be?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-04-09
@dodo512

RewriteEngine On
RewriteRule ^(products/equitone-natura)/$ /$1/description.html [R=301,L]

Or
RedirectMatch 301 ^/(products/equitone-natura)/$ /$1/description.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question