簡體   English   中英

Google App Engine應用程序沒有可用的鏈接

[英]Google App Engine app has no links working

我是第一次使用Google App Engine。 我正在嘗試上載CodeIgniter網站,但問題是該網站中沒有任何鏈接有效。 每個鏈接,甚至css和js都將轉到索引頁面。

這是我的app.yaml:

application: vatiali-dev
version: 1
runtime: php
api_version: 1
threadsafe: false

handlers:
- url: /css
  static_dir: css/

- url: /js
  static_dir: js/

- url: /fonts
  static_dir: fonts/

- url: /.*
  script: index.php

您應該將app.yaml更改為如下形式:

application: vatiali-dev
version: 1
runtime: php
api_version: 1
threadsafe: true

handlers:
- url: /css/*
  static_dir: css
- url: /js/*
  static_dir: js
- url: /fonts/*
  static_dir: fonts    
- url: /.*
  script: index.php

我也將threadsafe更改為true,除非出於特定原因將其設置為false,否則我認為將其設置為true是最佳實踐/標准,否則可能會遇到性能問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM