WordPress multisite subdirectory on nginx behind reverse proxy

The problem was the sql database that did not update urls. I do not know if there is a way to do this easily but I feel like I have looked everywhere for this solution and finally found it with this answer to a somewhat similar question : https://premium.wpmudev.org/forums/topic/how-to-change-url-for-wp-multi-site#post-426799 I started over from where everything … Read more

Mysterious HTTP 404 header in my own scripts

It turns out that it’s the require(‘../wp-blog-header.php’); part who caused the HTTP 404 error. I replaced the header code with: status_header(200); nocache_headers(); Both are part of WordPress API. And the problem went away. I found this solution from: http://wordpress.org/support/topic/integrating-wp-in-external-php-pages?replies=22

Subdirectory multisite – only root admin available on NGINX

I’m not 100% sure how I fixed this, but I did. A few things I did: Make sure you clear your cookies, or test in an incognito window. Login cookies caused me some problems. I replaced my nginx rewrites with: rewrite ^/(site1/|site2/|site3/)?(wp-(content|admin|includes).*)$ /wp/$2 break; rewrite ^/(?!wp/)(site1/|site2/|site3/)?(.*\.php)$ /wp/$2 break; Because I’m dealing with a small network … Read more

Cant get wordpress to work on subdirectory

so @funkysoul was kind of right in terms on installing php. It was still a nightmare to setup nginx the way i needed it, my solution is: location / { try_files $uri $uri/ =404; } location ^~ /blog { alias /srv/www/wordpress; try_files $uri $uri/ /index.php?/$1 last; location ~ \.php$ { index index.php; include snippets/fastcgi-php.conf; fastcgi_param … Read more

Configuring Routing Rules for WordPress+Nginx and WP-SuperCache?

Hi @jschoolcraft: Does this articles address your question? WordPress, Nginx and WP Super Cache If not, maybe there would be something in these? HOWTO: Install WordPress On Nginx WordPress + nginx Compatibility Plugin Howto nginx + wordpress + ubuntu shortest setup Nginx front-end proxy cache for WordPress WordPress Pretty Permalinks with Nginx

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)