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

  • Home
  • SEARCH
  • 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 8019993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:33:47+00:00 2026-06-04T21:33:47+00:00

I cant seem to find this anywhere. What I have is an appengine project

  • 0

I cant seem to find this anywhere.

What I have is an appengine project that just serves html pages. But it only correctly loads files when the filename is ‘exactly’ correct.

I.e. mywebsite.com/lastproject/ loads perfectly

but mywebsite.com/lastproject does not load at all

I want the website to load correctly when the trailing / is left out. What am I missing???

Here is my app.yaml

application: websitewithsubfolder
version: 1
runtime: python
api_version: 1

handlers:

- url: (.*)/
  static_files: static\1/index.html
  upload: static/index.html

- url: /
  static_dir: static
  • 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-06-04T21:33:49+00:00Added an answer on June 4, 2026 at 9:33 pm

    @Shay means the line should be:

    - url: (.*)
    

    That is a route that handles all URL requests you will not get any 404 errors, and all Requests are handled by a static index.html page. Your second route will not ever be handled as it is more specific and after your generic route.

    You want the more specific routes above your catch all routes.

    application: websitewithsubfolder
    version: 1
    runtime: python
    api_version: 1
    
    handlers:
    - url: /static
      static_dir: static
    
    - url: /favicon.ico
      static_files: static/images/favicon.ico
      upload: static/images/favicon.ico
      mime_type: image/vnd.microsoft.icon
    
    - url: /robots.txt
      static_files: robots.txt
      upload: robots.txt
    
    - url: /(.*\.(gif|png|jpg))
      static_files: \1
      upload: (.*\.(gif|png|jpg))
    
    - url: /static/css
      static_dir: static/css
    
    - url: /static/js
      static_dir: static/js
    
    - url: (.*)
      static_files: static/index.html
      upload: static/index.html
    

    The app.yaml file above is more in line with what you want.

    I suggest you read the app.yaml docs which go over this in more detail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't seem to find anywhere that talks about doing this. Say I have
Im sure this is pretty simple but I just cant seem to find the
I know this has been asked before, but I just cant seem to find
I have searched but cant find this question anywhere. My wife and I are
can't seem to find a way to do this anywhere. I have an SQL
I have looked high and low and can't seem to find this anywhere. Does
I feel abit embarrassed asking about this. Cant seem to find it described anywhere
I can't seem to find the answer to this question anywhere. I realize that
I have tried googleing this but can't seem to find an answer. I have
I can't seem to find the answer to this anywhere... I have a function

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.