I searched for an answer for several hours, so sorry if he was asked several times, I skipped it.
Basically I want to do correspondence in order to ignore the first directory. This first dir on the path will be different, so I thought I could use a regex. But my regex matches the file name completely:
RewriteRule ^([az]+)?/(.+)$ $2 [L]
it works if I am one level deep:
http:
I get the actual root index page. This is what I want. but if I went deeper:
http://test.domain.com/one/two/anotherfile.php
I get a message that /anotherfile.php was not found because it is looking for a root in it. So it seems that my regex does not stop after the last [az]. I appreciate any help.
This is Apache2, if that matters at all.
source share