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 6158881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:02:06+00:00 2026-05-23T21:02:06+00:00

The dir structure is- MyApplication (Project Dir) -static –inside static, I got different dirs

  • 0

The dir structure is-

MyApplication (Project Dir)

-static
   --inside static, I got different dirs containing images, css, htmls, etc
-some other dirs
-app.yaml
-index.py
-index.html

The content of app.yaml is-

application: MyApplicationID
version: 1
runtime: python
api_version: 1

handlers:

- url: /favicon.ico
  static_files: static/images/favicon.ico
  upload: static/images/favicon.ico
  mime_type: image/x-icon

- url: /robots.txt
  static_files: static/robots.txt
  upload: static/robots.txt

- url: /static
  static_dir: static  
  secure: optional

- url: /projects
  static_dir: projects  
  secure: optional

- url: /about
  static_dir: about  
  secure: optional

- url: /
  static_files: index.html
  upload: index.html

- url: /.*
  script: index.py
  secure: optional

Everything works fine except that if anything on the html pages are redirecting to “index.html” gets me a page not found (“GET /index.html HTTP/1.1” 404 –) error. I tried follwing this – https://gist.github.com/873098 but still no luck. I tried other suggestions on other threads but still no luck. If I remove – url: / still no luck. Please advise.

  • 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-23T21:02:07+00:00Added an answer on May 23, 2026 at 9:02 pm

    The other person is right, you don’t have an entry for the url index.html, like

    - url: /index.html
      static_files: index.html
      upload: index.html
    

    Edit 2: Just to be clear, no matter what is on the static_files line, this will still result in a URL of http://mysite.com/index.html even if the static_files line includes a subdirectory.

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

Sidebar

Related Questions

I usually format my project directory like J-P Boodhoo. a main dir containing solution
In a new project I am working on I have the following dir structure:
I've created the eclipse project with cmake. I use vtk with qt. Dir structure
Suppose I have a directory /dir inside which there are 3 symlinks to other
I have a line like : <svnbootstrapper LocalWorkingCopy=${projects.dir}/${project.name} Password=4udr=qudafe$h$&e4Rub Username=televic-education /> in my config.xml.
Given the dir structure: x\Code x\Script\Backup.ps1 Backup.ps1 contains: $BackupDirectoy = ..\Backup $CodeDirectory = ..\Code
dir(re.compile(pattern)) does not return pattern as one of the lists's elements. Namely it returns:
'''use Jython''' import shutil print dir(shutil) There is no, shutil.move, how does one move
Given the URL (single line): http://test.example.com/dir/subdir/file.html How can I extract the following parts using
I often use this recursive 'visitor' in F# let rec visitor dir filter= seq

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.