Reg Expression to Exclude the contents of a Single folder
How can I exclude the contents of a folder using regular expressions.
Here is the code of the appspot app.yaml code.
I want any "file not found" 404 error arising in the folder /Codebox to be applied by error_handlers at the bottom of the code. Since the code is read from top and all handlers have to come above the error_handlers, I want to modify the code of the handlers so that they exclude the contents of the folder /Codebox and so that any error arising from this folder will be taken care by the error_handlers.
- url: /(.*\.(gif|png|jpg|ico|js|css))
- url: /robots.txt
- url: /favicon.ico
- url: .*
- file: default_error.html
- error_code: over_quota
Please suggest a regexpression to exclude the contents of a single named folder. Thank you.