Nginx

Running WordPress in subdirectory

By 9th May 2013June 9th, 2017No Comments

As MageStack uses Nginx as the web server, you need to add the following rewrite rules to your respective domain's general rules.

Eg. For example.com

/microcloud/domains/example/domains/example.com/___general/example.com.conf

With the following file contents

location /wordpress {try_files $uri $uri/ @wordpress;}
location @wordpress {
  rewrite . /wordpress/index.php last;
}

Adjust wordpress to suit the name and location of your WordPress installation.