Sub domain redirection to taxonomy
Do you have the line Options +FollowSymlinks defined in the .htaccess file before your rewrite rules? If so, remove it. If not, add it.
Do you have the line Options +FollowSymlinks defined in the .htaccess file before your rewrite rules? If so, remove it. If not, add it.
Well, thanks for hints but finally, I had to abandon the idea of subdomain due to lack of working solution for this. I made separate categories for questions and used some hooks to display&operate on them properly. Thanks to the Custom Permalinks plugin, I now have domain.com (main blog) and domain.com/forum/ (Q&A), and the latter … Read more
You could just prevent slugs matching existing directories. There are two filters for that. Example, not tested: add_filter( ‘wp_unique_post_slug_is_bad_hierarchical_slug’, ‘prevent_directory_slugs’, 10, 2 ); add_filter( ‘wp_unique_post_slug_is_bad_flat_slug’, ‘prevent_directory_slugs’, 10, 2 ); function prevent_directory_slugs( $bool, $slug ) { return is_dir( ABSPATH . “https://wordpress.stackexchange.com/” . $slug ); }
Today, I’ve posted a working solution for exactly the same problem. You can see it here: How to share WordPress session and cookies between domain and subdomain?. I use this method on several of my own websites.
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 … Read more
This plugin will help you: http://wordpress.org/extend/plugins/wordpress-subdomains/ Also, wp_redirect could be helpful: https://stackoverflow.com/questions/4706672/wordpress-tags-redirect-to-subdomains
You can create a file called custom_logout.php and place it in the root wordpress directory. This contains <?php require_once(“wp-load.php”); //load wordpress wp_logout(); //logout exit(); //end page ?> Then in your subdomain site open the url with an anchor tag <a href=”http://youwebsite.com/custom_logout.php”>Logout</a> You can’t create a whitelist easily because it would involve checking where the user … Read more
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 site constants … Read more
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 and you … Read more
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 multisite install. If sd1.mysite.com and … Read more