My application's directory structure is as follows...
/
/folder1/index.php
/folder1/page1.php
/folder1/page2.php
/folder2/index.php
/folder2/page1.php
/folder2/page2.php
In the app.yaml I have written the following...
application: myAppID
version: 1
runtime: php
api_version: 1
handlers:
- url: /(.*\.(gif|GIF|png|PNG|jpg|JPG|ico|ICO|js|JS|css|CSS))
static_files: \1
upload: (.*\.(gif|GIF|png|PNG|jpg|JPG|ico|ICO|js|JS|css|CSS))
- url: /
script: index.php
Except for home page no other page is loading properly !!! I understand the app.yaml needs to be re-written. But do I need to specify each an every folder and script of my application on there is any wildcard way ?
Did you read the section on configuring script handlers ?
You can use back references.
- url: /(.*)/
script: \1/index.php
- url: .*
script: index.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.