Move from Subdomain to Root

The first part of your question hangs more on how much control over web server configuration you have. If you can point new domain at the same location in filesystem — then no, you won’t have to move a thing. Otherwise you do indeed need to move files. On other hand it’s not that complicated … Read more

WordPress Multisite Wildcard Subdomains on Plesk

You have forwarded the wildcards to the wrong subdirectory this is why you are seeing the Plesk default page. The wildcard subdomain rule should point to the folder of your wordpress multisite installation. WordPress reads the URL from the request and then internally routes to the correct site. If it’s not pointed to right place … Read more

Pulling images from a subdomain

Managed to solve it myself.. So if anyone else has this problem. Because the sub-domain is still under the main domain you do not have to put – /home/hostname/subdomain.com you only need the /home/sub-domain.com and everything will work.. hope this helps someone.. Richard

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.

Relative instead of absolute links in pages?

There is a filter, post_link, that permalinks pass through before being returned from get_permalink in wp-includes/link-template.php. You can use that filter to alter the links. However, beware that making all permalinks relative may have unintended consequences in certain contexts, e.g. you might not want relative links when is_feed() == true. You may find that the … Read more

turn single domain off

Your easiest route is probably to use a plugin like Restricted Site Access (disclaimer: written by my boss) to redirect a user who isn’t logged in elsewhere, like the network home or something else. There are a few other similar plugins out there. Another option would be to take the code you say you’d put … Read more