S
S
Sergey Goryachev2017-07-25 14:10:00
Apache HTTP Server
Sergey Goryachev, 2017-07-25 14:10:00

Correct htaccess redirect?

Actually, the essence is this.
There is a product catalog on the site.
/katalog/kategoriya/
But for some reason, addresses are also available.

/novosti/kategoriya/
/o-kompanii/kategoriya/
/kontakty/kategoriya/

How to redirect from /novosti/, /o-kompanii/ and /kontakty/ to /katalog/.
In general, I need a 301 redirect, but now the directory duplicate is completely observed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
4
4X_Pro, 2017-07-25
@webirus

You need to see what is written in the current .htaccess. Most likely, for URLs like /novosti/, you need to add the $ symbol (end of line) to the end so that the 404 status is correctly displayed on a URL like /novosti/kategoriya/, and not to make crutches like redirects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question