app.yaml handler sequence for removing file extensions

189 views
Skip to first unread message

ch...@innerathletenutrition.com

unread,
Sep 27, 2017, 1:29:20 PM9/27/17
to Google App Engine
Hi, 

I'm using App Engine to host a static site (Soon to become full web app), but I'm being forced to make trade offs with my app.yaml file which doesn't seem to be the case for most users.

File structure is:

ROOT
- app.yaml
- www (directory)
   - .html files
   - css (directory)
      - styles.css
      - etc
   - js (directory)
      - abc.js
      - etc
   - Other directories

1) app.yaml sequence 1:


Intended behaviour: all static files serve successfully and any pages/html files have the file extension removed from the url
Actual behaviour: all static files serve successfully, but file extension is not removed


2) app.yaml sequence 2:


Intended behaviour: all static files serve successfully and any pages/html files have the file extension removed from the url
Actual behaviour: All html files serve successfully, but a number of images across the site don't show (index.html images show fine)

Any ideas how to get all files to serve correctly AND remove file extensions?!

Kenworth (Google Cloud Platform)

unread,
Sep 27, 2017, 9:15:41 PM9/27/17
to google-a...@googlegroups.com

A thread like this is off-topic for Google Groups, and should be posted to StackOverflow. While I'd like to help you, this isn't the place to do it. This forum isn't meant for specific 1-on-1 technical issues, but for general discussion of the platform and its services. With StackOverflow, which we also monitor, you'll be in touch with a much larger user-base of people who are going to help you, and in a format which is designed for that purpose. Check out our community support page for the list of tags we monitor.

You can check this thread which discusses how to remove file extensions on URL. Or this thread that has a user with similar issue of not fetching the images after removing the file extensions.

Reply all
Reply to author
Forward
0 new messages