NGINX rewrite rules for sub subdomains

No, sorry, that isn’t going to be possible. Assuming the user connects to your server at https://www.sub.domain.com with HTTPS, the sequence of events will be: the user’s client makes a connection and initiates an SSL negotiation; they will send SNI (= server name indication) that they’re connecting to www.sub.domain.com the server can use the SNI … Read more

Issue with htaccess redirection in WP Multisite

Every URL that has example.com/<non-existent-page> redirects to the main page: example.com/es/. This is presumably being done by WordPress itself, as there is nothing in what you’ve posted (in .htaccess) that is doing this. You probably need to add an additional “wildcard” redirect to redirect /<anything> (except for /es and /en) to /es/<anything>. For example: RewriteCond … Read more

Redirect subdomain in Multisite installation?

RewriteRule ^(.*)$ https://example.com/summer/$1 [R=301] You need to include the L flag on the RewriteRule directive, ie. [R=301,L] and ensure this rule is near the top of the .htaccess file, before the existing WordPress directives. Without the L flag, processing continues and the request is further rewritten (by the WordPress front-controller) before the eventual (incorrect) redirect.

“Organize my uploads into month- and year-based folder” Option Not Visible in Multisite

All credit to: https://chiroiu.com/blog/disable-month-year-based-uploads-on-wordpress-multisite/ Disable month- / year-based uploads on wordpress multisite Wordpress / January 30, 2020 By default wordpress organises uploaded media into month- and year-based folders. Probably a relict from when it was mostly used as a blogging tool. You can disable this easily enough under Settings > Media. On a WordPress Multisite … Read more