A
A
atom572014-01-10 19:15:54
Sphinx
atom57, 2014-01-10 19:15:54

How to do a 301 redirect correctly?

Hey! I am changing the engine and decided to make a redirect so as not to lose positions in the search and the natural link mass.
In .htaccess I write the following rule, found in Google:

RewriteRule ^products/category/487227?$	catalog/наручные-часы  [L,QSA]

Everything works well. Visiting site.com/products/category/487227 opens the desired content, the same as the link http://site.com/catalog/watch-watches, but the URL remains the same.
For some reason it seems to me that it should not just open, but redirect to a new link.
The essence of the question : How will the search engine react to the fact that I have the same content on two links? How to make a redirect more correct?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
egor_nullptr, 2014-01-10
@atom57

RewriteRule ^products/category/487227?$	catalog/наручные-часы  [R=301,L,QSA]

www.askapache.com/htaccess/301-redirect-with-mod_r...

S
Sergey Larionov, 2014-01-11
@Zidar

Why is there a RewriteRule at all?
There is a standard mechanism for a redirect:
Redirect 301 /old/path/index.html example.com/new/path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question