Tag Info

Hot answers tagged

7

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


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

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

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

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

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

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


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


2

In WordPress you can easily do this with sub-directories like example.com/user1 Sub-domain & URL Strategy Having username.domain.com will prevent you in the future from having your own sub-domains like shop.example.com and will plague you if you wanted to use www.example.com or just http://example.com Finally ... what if some user wants to use ...


2

To me it sounds like this might be something better suited to a single site install vs. multi site. But it really depends on how customized things need to be for a single user. NOTE: this answer will not include information about server setup, etc. First off, I would define WP_HOME and WP_SITEURL in wp-config.php and make them unchanging. You can ...


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

Can you use a custom menu (Appearance -> Menus) ? If so, just create a custom link and insert it where desired. This has the added benefit of not cluttering your list of pages with a page that isn't real.


2

Make sure your webhost gives you the ability to use WildCard DNS. I know some hosts such as Dreamhost don't allow it on their shared hosting plans.


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.



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