S
S
Sergey Goryachev2016-10-08 19:35:17
CMS
Sergey Goryachev, 2016-10-08 19:35:17

How to make 301 from only 1 page without inner paragraphs?

I have several storefronts on my site.
And there you need the showcase to have its own nested categories.
Now my catalog has the address www.site.ru/catalog/tovary
But in the management system the showcase has the address www.site.ru/catalog
So I need to make a 301 redirect from www.site.ru/catalog to www.site.ru /catalog/product
If I just put

Redirect 301 /catalog/ http://www.site.ru/catalog/tovary/

I have an infinite.
How to make a redirect only from the page www.site.ru/catalog/?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xsash, 2016-10-08
@xsash

Maybe in php?

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.site.ru/catalog/tovary/");
exit();
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question