ansible-personal/roles/nginx/templates/wordpress.j2

11 lines
279 B
Django/Jinja

# try for WordPress index.php in /
# fall back to index.php + args (passed to php5-fpm later)
location / {
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;