A
A
alexander_chn2017-06-17 21:44:27
1C-Bitrix
alexander_chn, 2017-06-17 21:44:27

How to remove folder from url path?

Hello everybody!
Here is a question. There is a folder on the site:
site.com/folder
and it has many subfolders:
site.com/folder/folder1
site.com/folder/folder2 etc.
what to write in .htaccess to make links like:
site.com/folder1
site.com/folder2
i.e. remove folder from path.
added to .htaccess:
RewriteRule ^folder/(.+)$ site.com/$1 [R=301,L]
did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Eremin, 2017-07-26
@divanus

Need to open documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question