I have this directory structure:
|-language-A\
|-language-A\program-A
|-language-A\program-B
|-language-A\program-C
|
|-program-A\
Currently program-A is not translated to the language-A but somehow Google was able to crawl this directory and now it’s showing in the search results. I need to redirect language-A\program-A to program-A in the root … not all the folders inside language-A just that directory. This is a temporary redirection as I will remove that rule once that translation is ready.
So basically it will be something like:
http://example.com/language-A/program-A/what-ever
To:
http://example.com/program-A/what-ever
The question really doesn’t say much so I will assume all strings are fixed and there are no parameters to pass:
You may try this:
Redirects temporarily
http://example.com/language-A/program-ATo:
http://example.com/program-AAll according to your question:
I need to redirect language-A\program-A to program-A in the root...UPDATED
According to question update:
Redirects temporarily
http://example.com/language-A/program-A/what-everTo:
http://example.com/program-A/what-ever/what-everis optional and will be passed if exists.