Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6023251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:58:37+00:00 2026-05-23T03:58:37+00:00

With app.yml in GAE, we use regular expressions to match a certain type of

  • 0

With app.yml in GAE, we use regular expressions to match a certain type of url address.

If I want to match a subdirectory of the path which is not a particula string(exclude one ), I do not know how to write regular expression?

For example:

I want to upload foo/bar/.* as static files exclude any files in foo/bar/dir/.* , how to deal with this in app.yaml .

include files in dir as static files like :

foo/bar/main.css
foo/bar/js/main.js

exclude files in dir(to use these files as application templates) like this:

foo/bar/views/index.html

The reason why I need this function is that I have mixed templates file with static files in a parent file. like WordPress theme templates file.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:58:37+00:00Added an answer on May 23, 2026 at 3:58 am

    Most people keep all their static files in a subdirectory called “public” or “static” to avoid this issue, and I recommend you do the same.

    You could add a line to catch your files by extension like:

    - url: /foo/bar/([^.]+\.(js|css))
      static_files: foo/bar/\1
      upload: foo/bar/[^.]+\.(js|css)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following in my app/frontend/config/routing.yml : homepage: url: / param: { module:
I have tried to use a parameter in my app.yml file inside a task
I have a special url which I would want only few people to have
I have two config-files /app/config/database.yml and /app/config/userconfig.yml i don't want to put the database
App Engine only allows you to use these formats for XMPP addresses: app-id@appspot.com anything@app-id.appspotchat.com
My app is installed via NSIS. I want the installer to install the program
My app uses a WebRequest at certain points to get pages from itself. This
My app has a DataGridView object and a List of type MousePos. MousePos is
I have main config file /app/config.yml . Now i have services.yml in myBundle/resources/config/services.yml Do
Here is my setup, a bit changed standard edition. # app/config/routing.yml _internal: resource: @AcmeDemoBundle/Controller/

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.