I've been trying to set up a basic Wordpress site with Google App Engine's new PHP SDK, following these instructions .
From what I understand, app.yaml
is where the process kicks off and should work similar to .htaccess
(re routing).
Google instruct you to drop your wordpress files into a wordpress folder, so your directory structure looks like this:
.
├── app.yaml
├── cron.yaml
├── php.ini
└── wordpress
├── index.php
├── license.txt
├── readme.html
└── (etc)
So their template app.yaml
should work, including the following lines:
- url: /wp-cron.php
script: wordpress/wp-cron.php
login: admin
- url: /xmlrpc.php
script: wordpress/xmlrpc.php
- url: /(.+)?/?
script: wordpress/index.php
But localhost:8080
gives me my app folder's directory structure, instead of the anticipated wordpress/index.php.
I tried this as well:
- url: /.*
script: wordpress/index.php
Any ideas?
Note: I verified that wordpress/index.php
exists, by the way.
GAE's dev_appserver will never list the directory structure. Sounds like you might be hitting some other web server running on your localhost?
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.