Wordpress Network per site Custom URL Slugs - php

I'm attempting to setup a Multisite Wordpress Network, but one of the requirements is that each site needs to have their own custom slug in the URL. For example:
http://www.site1.com/blog/
http://www.site2.com/reviews/
http://www.site3.com/commentary/
Currently, so far as I can tell, there is no way of tailoring a per site slug. Domain Mapping is simple using the plugin Wordpress MU Domain Mapping (It's compatible with Wordpress 3+ Networks.) But what I really need is the added ability of those custom slugs. Has anyone seen anything of that sort?
I'll revert to a large collection of individual Wordpress Instances if I have to, but this network setup would be the perfect solution if I could get the slugs to work.

The slugs have nothing to do with your multisite setup. Look into modifying each site's permalink structure instead.
UPDATE
Maybe try to write your own rewrite rules?

The resulting research is that you can't do what I was after with the default build of Wordpress using the Multisite features and the Wordpress MU Domain Mapping.
The arrangement can work sub-directory separation of sites, but the only way to allow the sub-directory to exist for domain mapped addresses is to build an entirely new plugin that does the domain mapping with support for that, or to modify the Wordpress MU Domain Mapping plugin so that it has the support for it, effectively creating a new plugin out of it.

Related

Wordpress - 2 other sites in same theme

I've got wordpress site with installed theme. I want to create 2 sites with same theme, just differs only subdomain and menu and index page (just specific "page" in wordpress). How to resolve this? Multisite in wordpress or some other simplest way (or maybe multisite is the simplest way to do this)?
I've never used the WordPress multisite feature, but here's a good reference: https://codex.wordpress.org/Create_A_Network.
A multisite network is a collection of sites that all share the same
WordPress installation. They can also share plugins and themes. The
individual sites in the network are virtual sites in the sense that
they do not have their own directories on your server, although they
do have separate directories for media uploads within the shared
installation, and they do have separate tables in the database.
From this point of view, I think it is the simplest way of implementing the same theme in both sites. Also, if you install WordPress in two different folders of the same server it will be considerably slower than if you use multisite.

WordPress multi site installation

i have 3 self hosted wordpress sites in same machine but each one uses different url as explained below.
publication.mysite.com (wordpress site)
info.mysite.com (wordpress site)
flipbook.mysite.com (wordpress site)
now mysite.com is our primary company's website. it is a sharepoint site. because of this i cannot create mysite.com as our primary wordpress site.
i want to keep publication.mysite.com as our primary wordpress site and under this site bring the other 2 wordpress sites (multi-installation).
below is what in am trying to accomplish.
all 3 sites should consume it's own mysql database
all should be pointing to it's directory
all 3 sites url should not changed.
all posts, and other data in all 3 sites must be retained.
how could i do this? i tried to follow wordpress multisite installation documentation but i am stuck because i do not know how to setup as per my domain requirement.
another reason why i want to do this because of search. i have a global site search plugin from wpmudev. we need the ability to search from any one of our site to other 2 sites. for example: if i am searching for a 'productA'in one site, i need to display all post related to 'productA' from other 2 sites as well.
if there is any better way to perform global search like i explained, then i would like to hear about it
Thanks for help.
Your network-wide search functionality will be difficult to achieve if you must use separate databases for each site. It will require development chops that most people don't have. I respectfully suggest you reconsider that requirement.
Multisite search, in a single database, can be done with a plugin. For example. https://wordpress.org/plugins/multisite-global-search/
A WordPress multisite installation is designed to host sites with varying URLs. The migration isn't hard to do. You set up the target multisite system with three sites (blogs, WordPress's documentation calls them) in it. Rig the URLs for each of them.
This document explains the path to follow. https://codex.wordpress.org/Create_A_Network Multisite's administrative menu offers ways to configure the individual sites.
You then export the content from the individual sites and import them, one by one, into the target sites.
WordPress is decently well documented. Read this for an outline of the process of migrating to multisite. https://codex.wordpress.org/Migrating_Multiple_Blogs_into_WordPress_3.0_Multisite

Install magento into an existing wordpress site

I have a wordpress site online and I'd like to integrate Magento into my existing site.
Okay so I want to
Download the Magento files
Setup my Apache configuration, for this I already have my site configuration, so I was thinking about putting magento in this url mysite.com/my-store/ ... but for this on apache should I use "location" directive?
What else do I need to consider?
The best way to go about is install Magento in new folder and create new database as Magento requires a lot of resources and you don't want get it mixed.
It all depends what exactly is that you planning to achieve. Either to use your domain name as a main ecommerce and setup the Wordpress as a directory
domain-name.com/blog
if it's a blog or something, or you can setup an alias that points to the folder and have something like this:
store.domain-name.com
Another way to do it if you would like to have everything integrated is to use FishPig Extension and then simply update all the WordPress plugins and point it to your existing database.
these are two seperate programs so best would be to get a plugin for wordpress and integrate magento inside there are a few plugins like this out there http://www.mwi-plugin.com/

Wordpress and Mybb

Yes I know that there is a plug in to bridge the two, but I want to keep them separate. Basically I want the nav menu in wordpress to point to a sub domain or a folder with the mybb forums. Everyone keeps telling me to use the plug in. Also if you add folders to wordpress, will it not just give you errors that those pages do not exist? So is a subdomain the best choice?
It's completely fine to keep the two separate without using the bridge. If you want a link to MyBB from a Wordpress menu, you can add it in the Admin Panel -> Appearance -> Menus, add a Custom Link to your forum URL.
By default, the .htaccess file in Wordpress will not rewrite URLs any folders/files that exist on the server. So it is possible to have MyBB as a subfolder in your Wordpress installation. However, it may be cleaner and easier to maintain if you have it on a separate subdomain.

Custom domain with Joomla

Is there any nice component for Joomla 1.0.x allowing to serve custom domains? What I am trying to archieve is to sell subscription to my service and to offer custom branding including custom urls like yourcompany.myservice.com and even example.myservice.com. Any pointers? I am selling subscriptions themselves already for a long time, so the question is specifically on the domain part - how to manage apache vhosts/dns settings/whatever dynamically.
Since Joomla has moved on with version 1.5 it would be hard to find what you want for 1.0. I'd recommend switching to 1.5.
You can easily get multi-domain ability yourself. First you have to make sure all sub domains resolve to the same set of IPs. (*.yoursite.com)
For 1.0 you could probably get away with just plugins, but you might need to edit the core.
If you use a plugin, say a system plugin, in the plugin you can check for the HOST header.
eg:
$host = $_SERVER['HTTP_HOST'];
From this, you base your specific settings/parameters etc. You can also do the check from within components, modules etc.
An example would be loading different template. If the host is a sub domain, then load a custom template for that sub domain.
This is actually a lot easier to do with 1.5 as you can control what loads from plugins.
You don't need to change the apache config. There are several Plugins that can choose the Joomla configuration (including the template) and database based on the Domain name e.g. Joomla Multisites (btw. I would really recommend switching to 1.5)

Categories