Hosting a wordpress blog on a server with other web sites - wordpress

I have a wordpress installation on its own folder, on my server that hosts another site (non-wp) to. I want to keep the wp installation to its own sudirectory, but change the url to point directly to the blog (to get rid of /wp in the url).
Is it possible?
How does the index.php have to be configured to correctly point to both sites hosted?

You should set the subdomain in something like your cPanel with the web hosting.
Example:
I want to have: blog.domain.com and www.domain.com
www.domain.com is set by default.
In your hosting settings, you will need to create the blog sub-domain and have it point directly to another directory.

Related

Add sites in subdomain and not under wordpress multisite subdomain

I'm confused, I have a miltisite wordpress installation but also another site managing the customer areas.
So I have the site on the main domain www.domaine.com and i installed the wordpress multisite in a subdomain: sites.domain.com
So far everything is fine, but when I want to create a site, wordpress requires me to be subject to the subdomain like this: other.site.domain.com
I tried to modify the .htaccess and wp-config.php but when I go back to the site management it redirects me to www.domaine.com without my being able to access the wordpress multisite management...
How can I create sites with addresses under the domain and not under the subdomain like this:
other.domain.com and not like this other.site.domain.com
Thanks
It's ok, I can't access for two reasons.
One my wildcard is set on other folder than wp installation (blank page on subsite create)
Two I need to set address of new site for replace domain.com/other to other.domain.com
And now I can access to website and subsite.
Thank!
Thank you for your answer, I just tested but it does not react correctly.
When I put the configuration of DOMAIN_CURRENT_SITE on domaine.com I can no longer access the settings of the multisite network, I am redirected to the purchase site which is on the domain.
Another thing, if I therefore create a site in a subdirectory and not in a subdomain with the SUBDOMAIN_INSTALL configuration false, when I type test.domaine.com a blank page appears as if there was no site or if I Type site.domain.com/test/ it works.
I cleared the caches everywhere and tried again but nothing happened.
In case I expressed myself badly,
www.domain.com = The commercial site of the company
site.domain.com = Multisite management and sample site
other1.domain.com = Customer site created from site.domain.com
thanks again

Wordpress Multisite on existing subdomain Installation

I have a fresh Wordpress install that I have put onto a temporary subdomain temp.example.com as I want to transfer in blog.example.com as part of a multisite on this install that will work with the main marketing site www.example.com.
However when I enable multisite and go to the network settings it is trying to create site1.temp.example.com.
How do I configure this so the sites it creates are temp.example.com and site2. example.com (without thesub-sub-domain) so I can transfer the existing sites into this. I already have live sites on the main example.com domain and so can't change the cname/a record for this.
TIA
Nick

I need to repoint a Domain on a Names host to another server that runs my WordPress site?

I have a Domain host (JustHosts.com) that host my domain name:
mydomain.com
I have another server with a WordPress site on it which is accessed directly as:
mywordpress.com/wpsite1
I want this to be accessed via mydomain.com, so:
mydomain.com -> mywordpress.com/wpsite1
The URL should stay as mydomain.com, not go back to mywordpress.com/wpsite1.
I can add the following types of records:
A
CNAME
MX
TXT
SRV
AAAA
What should I do on my domain host to make this change?
Many thanks.
I could solve this in particular condition where we use subdomain to pointing to the WordPress site and the Wordpress site itself is installed on a host provider that is using cPanel.
Formerly I simply set CName on subdomain blog.mydomain.com to the subdomain where my Wordpress site is installed. Unfortunately this pointing was resulting a redirection like this:
http://blog.mydomain.com/cgi-sys/defaultwebpage.cgi
Searching for a solutiom then I found this documentation:
https://wordpress.org/plugins/wordpress-mu-domain-mapping/installation/
It is actually a documentation for a plugin to map any blog/site on a WordPressMU or WordPress 3.X network to an external domain. I didn't install the plugins I just marked that for cPanell users we need to put the mydomain.com as a parked domain in cPanel where the Wordpress site is installed.
So with the cPanel I uninstalled my WordPress and rearrange the installation step as below:
1. Put mydomain.com as a parked domain
2. Re install WordPress using blog.mydomain.com
Viola! The blog.mydomain.com is running the WordPress perfectly and stay in blog.mydomain.com without any error or redirection to other domain.

Redirecting domains in local server with Wordpress installations

I am using Uniserver as local server and have several sub-directories under www that simulate each one a different domain.
Example:
http://localhost/WPTest/ is the WPTest site where there is a Wordpress installation
http://localhost/WPTest1/ is the WPTest1 site where there is another Wordpress installation
What I would like to do and haven't been able, is to redirect http://localhost/WPTest/ just to http://WPTest and http://localhost/WPTest1/ just to http://WPTest1, etc.
I will appreciate any help to do this or at least to tell me if it's possible.
Let Uniserver do the work for you:
Create a Virtual Host opening Server Configuration -> Apache -> Apache Vhosts
Enter the Document Root path (i.e. ./whatever/www/WPTest).
Enter the Server Name (i.e. "wptest"). Use lower case only.
Select Confirm
Restart Apache Server.
Now in Wordpress, go to http://localhost/WPTest/wp-admin.
In Settings -> General, modify:
WordPress Address (URL) and Site Address (URL) replacing the actual URLs with http://wptest
Restart WP.
That's all. Now the virtual Wordpress site is accessed at http://wptest
Repeat the same steps for each subdirectory.

Point existing domain to wordpress MU site on another server

How do we point existing domain to wordpress MU site on another server? Here's the setup.
Server A has WPMU installed, with network setup of subfolders. www.wpmuinstall.com/site1
Server B has a domain hosted on it.. www.clientdomain.com
We want to point www.clientdomain.com from ServerB to ServerA www.wpmuinstall.com/site123
If above is not possible, we can switch to site1.wpmuinstall.com but then how do we point this site1.wpmuinstall.com to the siteid1 ? We have the WordPress MU Domain Mapping plugin installed but the WPMU is still setup as subfolders.
Please advise on how to accomplish client domain pointing to our wpmu site. Ideally we want to setup something like wordpress.com with custom domains pointing to subsites.
Thanks
If you are working with paths, install Wordpress Domain Mapping plugin and follow the steps described on this article. It will let you map a domain to a path in your server.
If you are using subdomains, then:
Add the desired subdomain to a site.
Point www.clientdomain.com to your wordpress server.
On your server, add the domain www.clientdomain.com and make it point to your wordpress installation.
Wait until DNS changes take effect.
Your site should be ready.

Resources