The user friendly URLs should be hyphened, for example:
http://example.com/some-category/some-file
My inherited folder structure however, is pascal cased, therefore the rewritten URL should look like this:
http://example.com/SomeCategory/SomeFile.php
Note: The amount of words in a category or file name will vary, so don't expect consistency in that way. ex. http://example.com/some-long-category/file
.
Im wondering how to do this, with a general rewrite condition-rule pair for any category and file, using Apache's mod_rewrite.
You can test your rules here, without the need to setup an Apache server.