[英]yaml file for php app on GAE
我正在一個雙語項目中,而index.php是獲取接受語言並包含適當文件的腳本:如果語言是X,則如果語言不是X,則包含/x/index.php,包括/y/index.php 。 我的目錄具有以下結構:
_
|-index.php
|
|-static
|
|- x - spanish.php
|
|_ y - english.php
我不知道如何配置yaml文件。 我下面有一個,但是在index.php包含page.php之后,它沒有加載適當的php功能。
application: myapp
version: 1
runtime: php
api_version: 1
threadsafe: yes
handlers:
- url: /static
static_dir: static
- url: /(.+\.php)$
script: \1
- url: /
script: index.php
我不知道如何解決它,我將非常感謝您的幫助。
如果提供的網址類似於/y/js/file.js和/x/js/file.js,那么您所需要做的就是
- url: /y
static_dir: y
- url: /x
static_dir: x
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.