Redirect urls from a directory but not the directory with htaccess

0

I come for help to know if it is possible, I need to redirect the contents of a directory, to the home of the site but not the directory, I do not know if I explain, the urls went from ... / news / article- 1 a ... / article-1

use this code

RedirectMatch 301 ^ / news /(.*)$/ $ 1

The urls redirect me well but the problem is that also the directory and is another url that I need to be well.

It is possible, there is a code to rename everything but not that directory.

Thank you very much.

    
asked by Andrew Herrera 26.05.2018 в 19:14
source

0 answers