mod rewritten directory shorten

Posted by Joseph on Stack Overflow See other posts from Stack Overflow or by Joseph
Published on 2010-05-31T21:45:19Z Indexed on 2010/05/31 21:53 UTC
Read the original article Hit count: 417

Filed under:
|
|

I can only find mod rewrite examples/tutorials for query's, so can someone help me with this.

I would like this

http://website.tld/Folder1/Folder2/Folder3/Folder4/Folder5/File.exten

to be transformed into

http://website.tld/Folder4/File.exten

Folder4 and Folder5 are multiple directories, while Folder 1-3 stay the same. Also File.exten also should be changeable in the rewrite. thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about mod-rewrite