Changing URL in multisite
Probably this due to the siteurl setting in db. But for multisite, how did you configure for mult UPDATE wp_options SET option_value=”YOUR_SITE_URL” WHERE option_name=”siteurl”
Probably this due to the siteurl setting in db. But for multisite, how did you configure for mult UPDATE wp_options SET option_value=”YOUR_SITE_URL” WHERE option_name=”siteurl”
Have you tried enabling the theme from network admin? Visit /wp-admin/network/themes.php and “network enable” the themes you would like to allow access to. You can set a default theme for new / existing sites on your network in wp-config.php Put this in your config file and change the theme name as desired. define(‘WP_DEFAULT_THEME’, ‘classic’); Network_Admin_Themes_Screen#Default_Theme
I fixed this in the following way. Go to the “Network admin”. Then Sites → Edit → Settings → Permalink Structure. Remove blog from it. Then I removed blog from two lines in table which obtained as a result of the query: SELECT * FROM wp_options WHERE option_name = “permalink_structure” OR option_name = “rewrite_rules” Useful … Read more
You’ll have to set up a domain with wildcard subdomains in your localhost (I usually set up thelivedomain.local), direct that to 127.0.0.1 in your hosts file and run the DB search and replace tool against your local copy of the site to safely replace the live domain with your localhost domain in the WP database, … Read more
I was in a similar situation recently. I ended up putting the root site on a random subdomain (eg ms.domain.com) With the intention of never using the root site. With that done, I created a plugin to activate only on the main (root) site. The plugin hooks into a action that fires only on the … Read more
I’d try this with two steps. First, install the Multisite User Plugin or grab the useful bits from its code. Short version: It hooks into user_register and loops through each blog in a multisite, adding the user to each one with a preset role. Handy. Second, use wp-cli to import a CSV of users: wp … Read more
i don’t know if it is the best method, but something i just did recently (having picked it up from an answer here) was to remove the menu page if certain conditions aren’t met and also to update the caps on all the removed pages so that they can’t be accessed by someone slick enough … Read more
Easiest way I know is by using Gravity Forms & User Registration add-on
U guess you can use the activate_blog hook
Did you flush the rules after making this code? Visit the Settings->Permalinks screen. This will cause a rule flush. Then check and see if your new rule appears.