[Edit to be a little clearer:]
I have a project hosted on Google App Engine (myappname.appspot.com)/ (myappname.com). So far so good.
There's a root level, and a subdirectory called folder
. The css styles for that subdirectory are in folder/css
. (e.g. folder/css/main.css
).
When I request myappname.com/folder/
, the content loads correctly, including css styles. Note the trailing slash /
.
However, when I go to myappname.com/folder
(no trailing slash), no css is loaded. I see in my logs a request for css/main.css
, which does not exist. What's going wrong and how can I fix it?
Here's the relative link from index.php:
<link rel="stylesheet" href="css/main.css">
Here's my app.yaml:
application: myappname
version: 1
runtime: php
api_version: 1
handlers:
- url: /folder/css
static_dir: folder/css
- url: /folder/
script: folder/index.php
- url: /folder
script: folder/index.php
- url: /.*
script: index.php
Thanks!