wordpress - Google App Engine modules: routing second module to subdirectory -
has run 2 different wordpress installations separate modules inside google app engine?
i have following:
/app/ - wordpress1 - wordpress2 - app.yaml - second.yaml - dispatch.yaml - php.ini inside wordpress1 , wordpress2 clean installations of wordpress, gae helper plugins.
app.yaml contains default module config, redirects traffic wordpress1 using url handlers.
second.yaml contains second module config (module: second) , redirects traffic wordpress2.
in dispatch.yaml check subdir second load second.yaml config:
dispatch: - url: "*/second*" module: second everything fine , dandy:
http://localhost.dev:8080 -> wordpress1/index.php http://localhost.dev:8080/second/ -> wordpress2/index.php but can't seem work out how set edge cases:
http://localhost.dev:8080/secondwithextra -> dispatcher error (no url set) http://localhost.dev:8080/second (missing trailing slash) -> same above i tried add following second.yaml handlers:
- url: /second[^/].+/? script: wordpress1/index.php # reroute `wordpress1` because not directory match. but didn't work out.
how can make second module accept request uri /second, /second/, /second/abc not /secondxyz?
having dispatch.yaml url glob set */second/* breaks slashless /second.
i think try add both */second/* , /second in dispatch.yaml.
Comments
Post a Comment