Tag Info

Hot answers tagged

9

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 ...


7

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

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.


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

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

Yes, you can. Follow this http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/


5

"example2.com sub1.example2com" Actually for subsites off of mapped sites, you want a multi network plugin. Free - http://wordpress.org/extend/plugins/wp-multi-network/ Paid - http://wpebooks.com/networks/


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

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 ...


3

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 ...


3

Basically, it turns out you need two dedicated IP addresses, or a third vhost. IP Address You could use two IP addresses and do something like this in your apache configuration: #IP address for WP NameVirtualHost 12.34.56.78:80 #For everything else NameVirtualHost *:80 Then, make sure the VirtualHost for WordPress is declared thus: <VirtualHost ...


3

Use the defines to make it pick the site you want it to pick. You can define these four to setup the $current_site values properly: DOMAIN_CURRENT_SITE, PATH_CURRENT_SITE, SITE_ID_CURRENT_SITE, BLOG_ID_CURRENT_SITE. If you check the wpmu_current_site() function in ms-load.php, you'll see that it uses those to create the $current_site global. You may or ...


3

This plugin will help you: http://wordpress.org/extend/plugins/wordpress-subdomains/ Also, wp_redirect could be helpful: http://stackoverflow.com/questions/4706672/wordpress-tags-redirect-to-subdomains


3

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 ...


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 * **/ ...


2

It sounds like it's not possible with stock WordPress Multisite to have a subdomain network from a WordPress-in-a-subdirectory installation: WordPress must run from the root of your webfolder (i.e. public_html) for subdomains to work correctly. They will not work from within a subdirectory. -- Before You Create a Network


2

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.


2

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: ...


2

What I would do (I was actually doing that many times) is: Change the domain name for the existing WP installation using, for example, this tool. Then, everything on your old site will get the "admin.example" links. Change the URLs back when retrieve DB records to use on the new site. When I was doing that, I never accessed the "admin" DB directly. ...


2

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 ...


2

Just check the current host: add_filter( 'the_content', 'domain_dependent_content' ); function domain_dependent_content( $content ) { // get_the_ID() will return the current post ID if you need // more information about the current page. if ( 'page' !== get_post_type() ) return $content; if ( 'au.example.com' === ...


2

I figured it out. The fact is, a network can use subdomains or subfolders, even when WordPress is installed in it's own folder as long as the main site's HOME URL is set to domain.com and not to the sub folder location. Here's an example: I setup a clean install of WordPress using Mark Jaquith's WordPress Skeleton which places WordPress's core files at ...


2

You could give a try to Wordpress Mu Domain Mapping plugin. Update Actually, it better fits on your request to include wp-blog-header.php in the top of your php file of your subdomain, so you can load also the template functions. include(dirname(__FILE__) . "/../path_to_my_blog/wp-blog-header.php"); Or you can do a wp_redirect after the include of ...


2

You need to set a wildcard serveralias in that site's virtualhost declaration. Right under where it says ServerName example.com you should add another line like this: ServerAlias *.example.com You might have already done that, but it was the only thing missing from the list of things you had checked.


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 ...


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

I began using Multisite just a few months ago, and am really loving it. You're going to want to use the sub-domain structure if you have a host that supports it. I use a Media Temple Grid Server plan. It will allow you to create a subdomain and then mask it with a symbolic link. i.e. rtgibbons.mynetwork.com would be mapped as rtgibbons.com or whatever URL ...


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 ...


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 ...



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