I
I
IgorRastarov2017-04-25 15:51:30
1C-Bitrix
IgorRastarov, 2017-04-25 15:51:30

How to make a redirect if there is no subdirectory, but only a component?

Hello.
I have infoblock nomer
It has subsections 1,2,3
I need to
open immediately /nomer/1/ when I go to /nomer/ Local
redirect works only if there is directory /1/ in my ftp folder
How to make mine option?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Harakhnin, 2017-04-25
@IgorRastarov

Just write a redirect to .htaccess
web-optimizator.com/301-redirekt-htaccess
This is the fastest and most obvious way. You can also write LocalRedirect in the result_modifier.php of the component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question