And one more question,
if I use your suggested app.yaml,
and for example the folder structure is:

root
- www
  - index.html
  - folderA
    - index.html
  - folderB
    - index.html

How do I modify the app.yaml to:

1. Show folderA's index.html when the url is 
http://domain/folderA/(anything behind)
2. Show folderB's index.html when the url is 
http://domain/folderB/(anything behind)
3. Show www's index.html when not match case 1 and 2

Thank you for your answering. And sorry for if I ask some low level 
questions... because I have no any idea to web stuffs...

Dan S (Cloud Platform Support)於 2018年7月5日星期四 UTC+8下午11時34分23秒寫道:
>
> As per [1] the app.yaml should be like this:
>
> runtime: python27
> api_version: 1
> threadsafe: true
>
> handlers:
> - url: /
>   static_files: www/index.html
>   upload: www/index.html
>
> - url: /(.*)
>   static_files: www/\1
>   upload: www/(.*)
>
> Moreover, it is important to keep the folder hierarchy as recommended in 
> the documentation, all folders below the 'www' folder.
>
> [1] 
> https://cloud.google.com/appengine/docs/standard/python/getting-started/hosting-a-static-website
>
> On Thu, Jul 5, 2018 at 11:10 AM Parth Mishra <[email protected] 
> <javascript:>> wrote:
>
>> What handlers have you specified? 
>>
>> On Thursday, July 5, 2018 at 9:01:53 AM UTC-4, Koki wrote:
>>>
>>> I have deploy my website through the tutorials using Google App Engine.
>>>
>>> My website is work now. 
>>>
>>> However, it's only works on https://koki-6hats.appspot.com/index.html
>>>
>>>
>>> For other cases like:
>>>
>>> https://koki-6hats.appspot.com/index
>>>
>>> https://koki-6hats.appspot.com/
>>>
>>> https://koki-6hats.appspot.com/shouldGoToIndex.html
>>>
>>> is not worked. 
>>>
>>>
>>> How can I config the routing rule to make sure all links above can 
>>> redirect to index.html automatically?
>>>
>>>
>>> My app.yaml: 
>>>
>>> env: flex
>>>
>>> runtime: php
>>>
>>> runtime_config:
>>>
>>>   document_root: .
>>>
>>>
>>> I found that there are some method using standard environment to do the 
>>> static redirection. But when I tried to use that approach, my index.html 
>>> breaks and remain black text and white background only.
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/f4928cd5-0b92-4bf8-ae7b-1508200b34cd%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/f4928cd5-0b92-4bf8-ae7b-1508200b34cd%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5e17e429-8752-4c3a-aed4-3311c1481425%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-app... Koki
    • [googl... Parth Mishra
      • Re... 'Dangelo Trindade Santana' via Google App Engine
        • ... Koki
        • ... Koki
          • ... 'Yasser Karout (Cloud Platform Support)' via Google App Engine
      • [g... Koki

Reply via email to