How To Change Post Author Default?

You just create must-use plugin for your multisite instalation (https://codex.wordpress.org/Must_Use_Plugins), hook to post save action there (https://codex.wordpress.org/Plugin_API/Action_Reference/save_post), and inside action callback check if current user is admin/super admin (https://codex.wordpress.org/Function_Reference/is_super_admin), if so, you find current blog user with ‘author’ role (https://codex.wordpress.org/Function_Reference/get_users) and update post (https://codex.wordpress.org/Function_Reference/wp_update_post) with his ID as author ID. At least it is first, … Read more

Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter

There is no built-in way to do it. The .htaccess is “printed in the screen” of the wp-admin ones you are setting up the multisite (the same for wp-config.php). That info is never write directly in .htaccess file like the single site. The wordpress core code for multisite / htaccess is here: https://github.com/WordPress/WordPress/blob/703d5bdc8deb17781e9c6d8f0dd7e2c6b6353885/wp-admin/includes/network.php#L543

Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite

You’re close. I added a few more places to capture more scenarios and used the HTTP_HOST variable in the rule. The $1 is not needed in the condition as that would match what’s captured in the above condition. <IfModule mod_rewrite.c> RewriteEngine On Rewritecond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteCond %{REQUEST_URI} ^/subsite/? [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301] </IfModule> … Read more