简体   繁体   English

Google App Engine应用程序没有可用的链接

[英]Google App Engine app has no links working

I am using Google App Engine for the first time. 我是第一次使用Google App Engine。 I am trying to upload a CodeIgniter website, but the problem is no links in the website is working. 我正在尝试上载CodeIgniter网站,但问题是该网站中没有任何链接有效。 Every link, even the css and js are going to the index page. 每个链接,甚至css和js都将转到索引页面。

Here is my app.yaml: 这是我的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

You should change your app.yaml to look like this: 您应该将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

I have also changed threadsafe to true, unless you had it set to false for a specific reason I believe it is best practice/standard to set it to true, or else you may get performance issues. 我也将threadsafe更改为true,除非出于特定原因将其设置为false,否则我认为将其设置为true是最佳实践/标准,否则可能会遇到性能问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM