The htaccess file name is /etc/wordpress/.htaccess vs /etc/wordpress/htaccess.
Thread Starter
rfg76
(@rfg76)
I’ve copied /etc/wordpress/htaccess to /etc/wordpress/.htaccess but still have the error.
If I disable the plugin the subsites works fine by accessing them via mydomain.com/subdomain/
Thanks for answer.
Contact your hosting support to see if mod_rewrite is enabled for the mapped domain.
Thread Starter
rfg76
(@rfg76)
It’s hosted on my own server.
mod_rewrite is enabled.
any other hint?
really appreciate your help.
mod_rewrite is enabled.
In addition to having mod_rewrite enabled in apache, URL rewriting needs to be enabled in each vhost configuration.
Thread Starter
rfg76
(@rfg76)
OK, I’ve added the directive “AllowOverride All” and “Order allow,deny” to the vhost config file, but have not success
The vhost config file ended like this:
DocumentRoot /var/www/wordpress
ServerName http://www.mysubsite.com
<Directory /var/www/wordpress>
AllowOverride All
Order allow,deny
allow from all
Options +Indexes
</Directory>
Also tried “AllowOverride FileInfo” with the same result
Thread Starter
rfg76
(@rfg76)
I forgot to mention that I also added that directive to the main.mydomain.com vhost config file.
Also tried “AllowOverride FileInfo” with the same result
It’s actually AllowOverride FileInfo that enables the rewriting that the WP .htaccess implements. If that didn’t work then you have something else interfering in your apache config.
Thread Starter
rfg76
(@rfg76)
I finally managed to resolved via a rewrite rule:
RewriteRule ^(subsite/wp-content/uploads/)N/(.*)$ $1sites/N/$2 [L,R=301]
where subsite is the subfolder, and N is the subsite index