Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
1
vote
1
answer
490
views
Twig's 'start with' conditional returns 500 error
craft.request.getServerName() %}
{% if domain starts with 'subdomain' %}
{% include 'subdomain/index' %}
{% else %}
{% include 'homepage' %}
{% endif %}
It works without any problem on that server … I've just copied the site over to a another server for development, but that same code seems to be responsible for a 500 error. …
1
vote
Twig's 'start with' conditional returns 500 error
I was able to reproduce this without the starts with, and editing the usual PHP settings which cause problems with uploading assets sorted this out.