Redirecting domains in local server with Wordpress installations - wordpress

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.

Related

Work on a Wordpress site in Plesk before DNS is pointed

I've installed Wordpress on a 'subscription' in Plesk (latest version) on my server. The domain related to the subscription is not currently pointed to my server. However, I'd like to work on the Wordpress admin area before I point the domain.
Can this be done? At the moment if I use the 'login' button on the domain in Plesk it redirects me to the actual domain. Which as I say isn't currently pointed so gives me an error.
Can I access the website via the server and the directory folder of the site?
Thank you
You can update your hosts file to map the domain to the IP address of your server.
If the domain were example.com and the IP address of your server was 111.111.111.111 you would just need to add the line:
111.111.111.111 example.com
You can find where your hosts file is located here.

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.

Hosting a wordpress blog on a server with other web sites

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.

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.

Drupal Multisite, MAMP and SVN Best Practices?

I successfully set-up Drupal Multisites with:
site1.domain.com
site2.domain.com
site3.domain.com
using Virtualhosts and editing the etc/hosts with MAMP on my localhost. I then deployed it using SVN (it deploys automatically) on the live site.
The Problem: when I type "Site1.domain.com" because it goes to my localhost instead of my live site. Is there anyway to avoid this? (apart from renaming the subdomain, because it speeds up deployment)
Just check your virtual host settings in httpd.conf file, are you using IP address to redirect them?
And if its directing to your localhost, just check your host file, if might be redirecting because of that

Resources