That works, in that it returns the index.php. Unfortunately, that page's request for its resources (in sub-folders css, fonts, etc.) fails, I assume because the router isn't explicitly handling routes other than /docs.
Another way to put it: I want /docs/* URLs to point to /resources/views/docs/* and can't figure out how to do that.
@mstnorris Thanks, but unfortunately there are hundreds of files. I feel like there must be a more elegant answer than cataloguing them all and writing individual routes for them.
@mstnorris I'm building a REST API, and the \docs folder consists of auto-generated API documentation. My other idea was to simply plop it into /public, but I haven't figured out how to create a RewriteRule exception for that folder either.
I see, so you want the structure of the docs folder to be treated just like "old" websites where a URL maps directly to the structure of the directories?
Another option (without knowing what you're doing) is to exclude those files/folders from the rewrite. What web server software are you using? If you have a route with the same name as a folder, you will want to exclude the sub folder.
Edit: Apache?
RewriteCond $1 !^(docs)($|/)
// or
RewriteRule ^(docs)($|/) - [L]