V
V
Vladislav Balabanovich2016-09-06 14:56:30
Nginx
Vladislav Balabanovich, 2016-09-06 14:56:30

Setting up nginx for Wordpress Multisite?

Wordpress multisite is spinning at sitename.ru , everything is fine with the main site, but the trouble with those in the subfolders is that all assets - css and js - do not connect.
Physically, they all lie at the theme address, for example, the path to the main style file is as follows - sitename.ru/wp-content/themes/infocare/css/main.min.css
But in subsites, multisite accesses to a different address, for example, on the sitename.ru/no subsite , it looks for a style file at sitename.ru/no/wp- content/themes/infocare/css/main... , that is, it adds /no/ to the path - the name of the subfolder of this site, this is normal, so wp multisite works, you just need to configure nginx somehow, in Apache there .htaccess resolves this situation, but how can it be unclear
UPD. There is a transfer to a new hosting and domain, if it is important

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Balabanovich, 2016-09-06
@vladbesson

https://codex.wordpress.org/nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question