PHP website page are not opening in google cloud application

41 views
Skip to first unread message

ICP al-hassan

unread,
Jul 12, 2017, 8:59:28 AM7/12/17
to Google App Engine
Hai,

Please help me to solve the below mention  Issue.

My PHP google cloud application pages are not opening. 

app.yaml

runtime: php55
api_version: 1
threadsafe: true 


handlers:

- url: /phpinfo
  script: phpinfo.php
  
- url: /clock/
  static_dir: clock/

- url: /fonts/
  static_dir: fonts/

- url: /js/
  static_dir: js/

- url: /assets/
  static_dir: assets/

- url: /ajax/
  static_dir: ajax/

- url: /stylesheets/
  static_dir: stylesheets/

  static_dir: ajax.googleapis.com/

- url: /.+
  script: about.php

- url: /
  static_files: static/test.html
  upload: static/test.html



about.php page is working but  when I am trying to open test.html is redirecting to about.php only 

My code

<a href="test.html" target="_blank">TEST</a>

Please help me to solve this error. 



George (Cloud Platform Support)

unread,
Jul 12, 2017, 2:33:40 PM7/12/17
to Google App Engine
You need to indicate that the forward slash "/" is the last one in the string, so instead of - url: / before static_files, better - url: /$ . This should prevent the forward slash "/" to be treated in the same way as "/.+". 
Reply all
Reply to author
Forward
0 new messages