wordpress-single.conf.hbs 356 B

1234567891011
  1. # WordPress single blog rules.
  2. # Designed to be included in any server {} block.
  3. # This order might seem weird - this is attempted to match last if rules below fail.
  4. # http://wiki.nginx.org/HttpCoreModule
  5. location / {
  6. try_files $uri $uri/ /index.php$is_args$args;
  7. }
  8. # Add trailing slash to */wp-admin requests.
  9. rewrite ^(.*)(wp-admin)$ $1$2/ permanent;