Nginx und ISP Config - Anpassungen für Wordpress

Aus Carl-Christian Sautter - Wiki
Wechseln zu: Navigation, Suche

In ISP Config in den nginx Direktiven folgenden Code hinzufügen:

location / {
        try_files $uri $uri/ /index.php?q=$request_uri;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

location ~* \.(eot|ttf|woff|otf|woff|css)$ {
    add_header Access-Control-Allow-Origin *;
}
location ~* \.(css|js|gif|jpe?g|png|eot|ttf|woff|otf|woff)$ {
  expires 1d;
  add_header Pragma public;
  add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}