Wordpress - 2 other sites in same theme - php

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.

Related

Will moving a wordpress site create any problems with plugins?

I am currently working on a wordpress site, and the folders are just such a mess, that I want to clean them up and make it a bit more bearable to look at. The site uses multiple plugins, and the main site is in a folder inside the httpdocs folder, which makes me wonder if the plugins will cause any problems by moving the site to the root.
Anyone that knows the answer to this?
Wordpress uses a standard structure for plugins and themes. While these may be overwritten, it is not recommended to do so.
If you really wanna do so, you could take a look at this https://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder for reference, and move it around. Remember that the plugin may use wordpress hooks and filters for adding their own CSS/JS, and thus moving the folder out of the web-directory will make these unavailable, and break the plugin functionality.

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

wordpress multisite from exsiting 4 wordpress directory install

I need help in changing multiple wordpress instances installed in distinct subdirectories into a single wordpress installation with multisite activation. Let me explain my problem briefly:
example.com is my domain Hostgator shared hosting
example.com/ - Homepage as index.php my own designed php file
examole.com/university/ - wordpress 1st installation
example.com/school/ - wordpress 2nd installation
example.com/exam/ - wordpress 3rd installation
The reason why Idid this is I need different menus on each directory sites. I found no option t odo this in single wordpress.
Now I went through an article about wordpress multisite ; can I migrate all wordpress instances into a single wordpress with same folder having same site and contents ?
I currently have 200 posts on each wordpress and I don't want to lose the SERP results.
Is it possible to do without any effects and for all those sites ? I am the only admin.
Were I can have different menus and themes for each site on wordpress multisite ?
How to convert this in simple beginner level steps?
You can do it , but before you need to get backup for the all websites, also import all your posts from all the wordpress installation
Create a Network in your main domain , for your reference Create_Network
Then create your child website, based on the
Sub-domains — a domain-based network in which on-demand sites use subdomains
Sub-directories — a path-based network in which on-demand sites use paths
so your child website should be like
examole.com/university
example.com/school
example.com/exam
Once you have successfully created your child websites then there would be a separate wp-admin for each child websites in your Main wp-admin, once you get logged in as admin ,
At the left of your WordPress toolbar, My Sites is now the second item. There, all your sites are listed, with handy fly-out menus, as well as a Network Admin menu item. Under Network Admin you can use the Dashboard item to go to the Network Dashboard screen.
then you can import your posts (already exported from your old websites) on each child webistes as possible ,
Hope this is enough to do it

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.

Wordpress Network per site Custom URL Slugs

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.

Categories