Subdirectory and domain multisite installation
Subdirectory and domain multisite installation
Subdirectory and domain multisite installation
Just use a RedirectMatch 404 in your WordPress .htaccess: RedirectMatch 404 ^/(sub-folder-1|sub-folder-2)(/.+)?$
Found a solution for anyone who may stumble upon this. Basically, each part of a standard WordPress htaccess now has two RewriteConds: one for when it is in a subfolder, and another for when its not. Depending on that evaluation, the appropriate RewriteRule is applied. # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – … Read more
You can’t use http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory to move from a subdomain to a domain. WordPress can be moved up or down a directory level, but the same technique can’t be used for subdomain – really a different domain – to another domain. Follow Moving WordPress « WordPress Codex and WordPress Serialized PHP Search Replace Tool. The main … Read more
So this issue had to do with File permissions. I believed that I had already checked into this to make sure that permissions were set properly, but I must have erred. I went to the subdomain folder ‘staging’ which contains my WP install and turned on User ‘read’ and ‘write’ permissions, which were inactive. So … Read more
I found the answer in nav-menu.php, it wasn’t too complicated. I just changed the foreach loop content like this : if($item->classes[0] == ‘subdomain1’ && !empty( $item->menu_item_parent )){ $item->menu_item_parent=””; }elseif($item->classes[0] == ‘main’ && $sub != ‘domain’){ unset($items[$key]); } Hope it can help !
Your blog subsite is working fine here. When you create a subsite it can take some time for the DNS to update. You may lower your TTL for faster updates. The blog shows a white page, but I think that’s because of there is no theme activated. Since your wp-admin link working.
Sounds like you want a WordPress Multisite installation with a wildcard subdomain configuration.
Why don’t you try using the WP API? You could then pull posts from a URL like this … http://subdomain.example.com/wp-json/posts You can also set custom post types to use the WP API and then access them also in a similar manner, you would need to add the following to your CPT args: $args = array( … Read more
There are many reasons why WP could display this: 1 Insufficient file permissions on wp-admin folder (check this with ftp) 2 Prefix not consistently the same in database and wp-config (less likely in this case, but check anyway). 3 .htaccess doesn’t reroute wp-admin folder correctly 4 User roles not well defined in database (wp_capabilities should … Read more