Do you own the code in question, or are you trying to divine the workings of someone else’s site as a “black box?”

A URL is intended to be a “resource locator,” nothing more or less, such that you ought not be able to determine how the data is served by any examination of the output. If you have access to the Apache configuration files, there are so many possible variations that a site-designer could have resorted to that you will have to, I think, trace through them example-by-example to determine how any particular one of them “shakes out.”