Google app engine with php

I have problem in redirect url. i have style.css file in my root folder and i have try many to call it but i fail.
<link rel="stylesheet" href="style.css">

app.yaml
application: myphp
version: 1
runtime: php55
api_version: 1
threadsafe: yes

handlers:

  • url: /favicon.ico
    static_files: favicon.ico
    upload: favicon.ico

  • url: /css
    static_dir: css

  • url: /assets/css
    static_dir: assets/css

  • url: /assets/ST-User/css
    static_dir: assets/ST-User/css

  • url: /assets/js
    static_dir: assets/js

  • url: /assets/images
    static_dir: assets/images

  • url: /thumb/stores
    static_dir: thumb/stores

  • url: /assets/js/libs
    static_dir: assets/js/libs

  • url: /store
    script: /store.php

  • url: .*
    script: index.html

A style sheet is relative to the web-page path that it is called from or a fully qualified URL.

// Fully qualified URL:
<link rel="stylesheet" href="http://yourSite.com/your/special/path/style.css" />

// OR Relative to web-page path:
<?php echo getcwd() ; /* DEBUG - to be deleted */?>
<link rel="stylesheet" href="./relative/path/style.css">

Edit:
Changed path to URL.

Edit:
I just noticed @Vishal_Patel this is your first post! Welcome to the forum.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.