Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
13

Easy solution would be adding this line to your wp-config.php of your admin server code. define( 'WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']); Then you can access it without modifying the database option.


11

Appart of the default ports and correctly configuring WPMS... In the Advanced Tab: And manually add the subdomains in /etc/hosts1 file: # BRASOFILO MULTISITE START 127.0.0.1 test1.brasofilo.dev 127.0.0.1 test2.brasofilo.dev 127.0.0.1 cloned.brasofilo.dev # BRASOFILO MULTISITE STOP 1 The folder etc is at the root of your HD and it's hidden. You can ...


9

There is a plugin for that: WP XAMPP Multisite Subdomains. Unfortunately, there is no English description available. I’ll try that here. The following guide will set up a multi-site under mu.wp with subdomains. 1. Basic Installation Start with a fresh installation of WordPress and XAMPP. Create a network for subdomains. Do not create any sub site yet. My ...


7

I might have a solution for you. First steps: Within your domain's DNS manager you need to create a CNAME record. The name would be blog and the hostname would be your domain name. This is necessary because the browser needs to know where to point the subdomain blog.mydomain.com to; Second, you need to tell apache (I suppose you are using apache) ...


6

By now, it is possible without any plugin. WordPress allows you to edit a sites domain and path free of any restrictions once it is created. First of all: create a new site with an arbitrary but valid subdomain: After the site was created follow the »edit site« link in the confirmation message. Here you can alter the domain and/or path on your own behalf. ...


6

my name is Daniel Kanchev and I work for SiteGround as a Senior Web Apps Engineer. The described issue is pretty strange and I just configured a test WordPress Network on one SiteGround shared server. I did not face any similar issues and I used sub-domain names with a wildcard SSL certificate. Usually such issues are caused by Apache VHost misconfiguration ...


5

If you are using MAMP Pro you can simply just add another completely new host using your sub-domain and then just route it to the same place as your top domain. You won't have to add any virtual hosts in your original domain, or have to stuff around with your hosts file.


5

Yes, this is possible and a number of news and media agencies work with similar approaches in WordPress. What's your Editorial Process? The most important step is understanding your editorial process and how much control you need to have of content before it goes live. - for example, consider these 3 points: 1. Do you need 3rd party approvals for images? ...


5

It's better to use WP_Rewrite for that. add_action('page_rewrite_rules','my_page_rules'); function ($rules){ $rules['([^/]+)/?$'] = 'index.php?pagename='$pageslug'/$matches[1]'; return $rules; } add_filter( 'page_link', 'sub_page_link'); function sub_page_link(){ // preg_replace here } I have found a premium plugin which uses the same mechanism to convert ...


4

During the load process, WP loads wp-settings.php, which calls is_multsite(), which checks for the multisite constant defined in wp-config.php if it is a multisite install. If it is multisite, then ms-settings.php is loaded. Inside ms-settings.php, WordPress parses the requested URI to get the domain, and calls wpmu_current_site() to set all of the current ...


4

If the subdomains are just for looks and don't actually impact data. Then have all subdomains point to the same place, install the domain mapping plugin: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ That may help. Alternatively you could just setup manual aliases to the main domain and as long as they all point to the exact same spot ...


4

First you should read the Codex entry on domain moving http://codex.wordpress.org/Moving_WordPress But in a nutshell: aside from moving your contents phisically to the /blog location, all you have to do is search and replace every SQL entry for the previous domain (instead of just changing the domain in Wordpress options). Doing this by hand is pretty ...


4

There's no need for the wp-content/themes path - both themes sit in the same directory, so you can just traverse up one and then back down to child theme: background-image: url(../child-theme-name/images/some-image.png); Update: Regarding your answer to "where is the CSS file stored", you inferred that the stylesheet resides in the child theme folder - in ...


4

From a user perspective there are two noticeable differences. First of all the GUI for creating new sites. Either it shows an input field for the first segment of the URL path (subdirectory) or an input field for the subdomain you want to use for the new site. (Setting the URL to a completely arbitrary value is only possible when editing an already created ...


3

It is important that you set the constant COOKIE_DOMAIN in the wp-config.php define( 'COOKIE_DOMAIN', '' ); The value must be empty, otherwise WordPress will always set it to your network's $current_site->domain and you won't be able to login into any of the other sites. From core: /** * @since 2.0.0 */ if ( !defined('...


3

Based on Charles Clarkson's comment, I directly changed the siteurl and home options in the wp_options table to be https://dev.example.com/ and this fixed the problem for me.


3

I'll skip steps related to sharing DB and sharing users data and meta, based on assumption that you've done it correctly. Let's concentrate on wp-config.php of both sites. These are defines that MUST BE IDENTICAL for both sites: define('COOKIE_DOMAIN', '.domain.com'); // your main domain define('COOKIEPATH', '/'); define('COOKIEHASH', md5('domain.com')); //...


3

Below is a small plugin using which you should be able to replace the domain for canonical url to another domain. <?php /* * Plugin Name: WPSE WPSEO Canonical * Plugin URI: http://wordpress.stackexchange.com * Description: Changes canonical url domain. * Author: Sisir * Version: 1.0 * Author URI: http://developerpage.net * **/ add_filter('...


3

You can have a subdomain, but you cannot detect mobile users reliably. And you shouldn’t. How to use a subdomain with the same content In your wp-config.php, look at $_SERVER['HTTP_HOST']. If it matches m.example.com, enforce the current domain as main domain with … const DOMAIN_CURRENT_SITE = 'm.example.com'; … and filter the active theme: add_filter( ...


3

You need to check if the siteurl differs from the home URL: if ( get_option( 'siteurl' ) !== get_option( 'home' ) ) { // whatever This also works if home is a subdirectory of the root, with WordPress installed in yet another subdirectory. For example: domain.com/blog (URL) and domain.com/blog/wordpress (siteurl).


3

You can dynamically update the WP_HOME and WP_SITEURL constants in wp-config.php to reflect the requested host: define( 'WP_SITEURL', 'http://' . $_SERVER[ 'HTTP_HOST' ] ); define( 'WP_HOME', 'http://' . $_SERVER[ 'HTTP_HOST' ] ); As long as visitors don't click a link containing a different fully-qualified domain (or otherwise send a request to a ...


3

Assuming sd1.mysite.com and sd2.mysite.com are single WordPress installs. You can create mysite.com as a WordPress Multisite, you can then export the posts, users, etc and reimport to the new multisite version of sd1 or sd2 using: https://en-ca.wordpress.org/plugins/wordpress-importer/ You will need to include the themes, plugins as well in the new ...


2

The standard WP RewriteRules ignore files and directories that "exist". Example: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress This the rewrite rule set for a ...


2

While this question is several months old and you've probably figured something out already, I figured it was worth answering anyway. This is possible to do using the WP Multi Network Plugin. WordPress has the underlying structure to accomplish this, but no accompanying UI -- this plugin merely offers that interface. Some things are not completely shared ...


2

you can achieve that in many ways, maybe the most suitable for you is to use the multisite function in WordPress 3.0 Read more at WordPress.org : Create a Newtwork Migrating Multiple Blogs into WordPress 3.0 Multisite


2

More than an answer, a study on the matter. The Excel issue we need an array, and Excel can provide a CSV a couple of solutions: How to extract data from csv file in php? not implemented here Relevant Q&A What's common to all is: no definitive procedure has been recorded in this Stack. Programmatically create blogs with dummy content on a WPMU ...


2

The site not being listed under My sites has happened to me loads. Go to Network Admin > Sites and you should see you site. The username is more than likely, not yours, Simply go into the user editor section add your self as an admin and delete the default user. This should make it appear under you My Sites.


2

You're probably going to have to write some custom SQL for that. Here's an example function that would do this. It's slightly insecure as we can't use $wpdb->prepare to put the blog_id in (it surrounds anything inserted with quotes). <?php function wpse33779_get_posts_from_blog( $blog_id = 1 ) { // is this is the current blog, just get posts... ...


2

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 in your theme and make your own little plugin with ...


2

Multisite is meant to be either one or the other, and it's not meant to be changed. If I were you, I'd move it to a testing domain rather than a subdomain, since you're going to have to change it back when it's time to move, and I don't know what sort of behaviors you'll see. Tutorial here. Basically, back up your DB, change each blog's URL, turn VHOSTS ...


Only top voted, non community-wiki answers of a minimum length are eligible