Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # strip app.php/ prefix if it is present
- rewrite ^/app\.php/?(.*)$ /$1 permanent;
- location / {
- index app.php;
- try_files $uri @rewriteapp;
- }
- location @rewriteapp {
- rewrite ^(.*)$ /app.php/$1 last;
- }
- # wordpress part
- location /blog {
- index index.php;
- try_files $uri $uri/ /blog/index.php?$args;
- location ~ \.php$ {
- fastcgi_pass phpfcgi;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param HTTPS on;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement