Multisite configuration fails with css/js files

The problem was in the .htaccess file the installation script generated. Specificaly, those two lines:

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) home/itaymoav/dev/lmspages/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/itaymoav/dev/lmspages/$2 [L]

The path in there is the actual path to the files. While it had to be the relative path from root dir of the worpress installation. Or, to put it simply:

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

Funny

Leave a Comment