Wordpress - Multiple domains pointing to same site

miklereverie

New member
Aug 21, 2019
14
11
3
Hello everyone!

A client of mine owns multiple domains ( let's say: client.com, client.com.br, client.com.uy, client.uy) I need to make all the domains point to the wordpress installation on client.com, but from what I could gather this is not as easy to do with Wordpress as with a regular website.

Some people have pointed me towards Wordpress Multisite, but I'm not entirely sure that's what would fix my issue since (from what I could understand) WP Multisite deals with multiple wordpress sites on a single domain. I just need the client's multiple domains pointing to a single Wordpress installation.

Is there any way to do this? Thanks to everyone in advance for taking the time to read this and helping out!
 
  • Like
Reactions: carmeli

marcost96

Active member
Babiato Lover
Oct 22, 2018
188
155
43
Argentina
grupo-met.com
Hi! how are you? If the task you request is from a client.com.br redirect it to a client.com, then you must configure it from DNS. That is, through the DNS Registry Editor, you must redirect every domain to client.com. I use the CloudFlare system a lot to configure the DNS of each domain.
Best regards, Marcos
 

carmeli

Active member
Mar 2, 2019
231
66
28
Hi! how are you? If the task you request is from a client.com.br redirect it to a client.com, then you must configure it from DNS. That is, through the DNS Registry Editor, you must redirect every domain to client.com. I use the CloudFlare system a lot to configure the DNS of each domain.
Best regards, Marcos
Hello everyone!

A client of mine owns multiple domains ( let's say: client.com, client.com.br, client.com.uy, client.uy) I need to make all the domains point to the wordpress installation on client.com, but from what I could gather this is not as easy to do with Wordpress as with a regular website.

Some people have pointed me towards Wordpress Multisite, but I'm not entirely sure that's what would fix my issue since (from what I could understand) WP Multisite deals with multiple wordpress sites on a single domain. I just need the client's multiple domains pointing to a single Wordpress installation.

Is there any way to do this? Thanks to everyone in advance for taking the time to read this and helping out!
Hi! how are you? If the task you request is from a client.com.br redirect it to a client.com, then you must configure it from DNS. That is, through the DNS Registry Editor, you must redirect every domain to client.com. I use the CloudFlare system a lot to configure the DNS of each domain.
Best regards, Marcos
Yes¡
 
  • Like
Reactions: miklereverie

miklereverie

New member
Aug 21, 2019
14
11
3
Hi! how are you? If the task you request is from a client.com.br redirect it to a client.com, then you must configure it from DNS. That is, through the DNS Registry Editor, you must redirect every domain to client.com. I use the CloudFlare system a lot to configure the DNS of each domain.
Best regards, Marcos


Hello Marcos, glad to see someone else from Argentina here!
Thank you for your reply, let me elaborate a little bit:

I understand how DNS redirecting works, I should've gone into a bit more detail and also say that we're looking to make it work so that:

clientname.br/archive/postname

shows the same information as:

clientname.com/archive/postname

while also retaining the .br url typed in the adress bar. Is this possible? I already have a DNS redirection configured but whenever I type "clientname.br" and the redirection happens, the address bar changes to the original domain "clientname.com". I know I'm being a bit picky but it's only because the client is really nitpicky about these kind of details related to the user experience.

Again, thanks a lot for your time and taking the time to help!
 
  • Like
Reactions: carmeli

marcost96

Active member
Babiato Lover
Oct 22, 2018
188
155
43
Argentina
grupo-met.com
I am also happy to know that you are Argentine, although I sensed it from the domain, unfortunately we have to speak in English because the forum requires it that way. Anyway, I tell you that what you request then is already specific programming in Wordpress. Since he must take care of redirection with the requested domain.
I was doing a quick search on what you request, and I found a plugin that could solve it. The only problem, which indicates it there, is that the theme or appearance can only allow one.
The plugin is from Gustavo Straube, and it's called Multiple Domain. https://wordpress.org/plugins/multiple-domain/
And here you can find the git of the files.
I also have no idea how it works, but it pretends what you need. Anyway, let me know if you managed to solve it and if not, I will try to do a more exhaustive search.
Best regards, Marcos.
 

MrSam_1

Well-known member
Staff member
Administrator
Dec 1, 2018
17,930
24,308
120
babiato.tech
Easier than you think without use of plugins.

You can point as many domains as you want to same WP install without needing to change site name as it's dynamically generated
Following you have 2 options of doing it: 1st with checking for use of SSL and second direct without any checks
Just find and replace in your wp-config.php following definitions enclosed between star lines (note that you will only find siteurl and home not request_url)

Code:
1st option
************************************

define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']); // used to define use of SSL or not

define('WP_SITEURL', SP_REQUEST_URL);
define('WP_HOME', SP_REQUEST_URL);

**************************************

2nd option
**************************************

define('WP_SITEURL', $_SERVER['HTTP_HOST']);
define('WP_HOME', $_SERVER['HTTP_HOST']);

**************************************

Edit: when you access your website dashboard by using any domain you'll see in Settings -> General that your domain is automatically changed to reflect issuer (either domain.com or domain.net for example)

2nd edit: playing with definitions and keeping one static will allow you retain your original host that you want static
 

miklereverie

New member
Aug 21, 2019
14
11
3
I am also happy to know that you are Argentine, although I sensed it from the domain, unfortunately we have to speak in English because the forum requires it that way. Anyway, I tell you that what you request then is already specific programming in Wordpress. Since he must take care of redirection with the requested domain.
I was doing a quick search on what you request, and I found a plugin that could solve it. The only problem, which indicates it there, is that the theme or appearance can only allow one.
The plugin is from Gustavo Straube, and it's called Multiple Domain. https://wordpress.org/plugins/multiple-domain/
And here you can find the git of the files.
I also have no idea how it works, but it pretends what you need. Anyway, let me know if you managed to solve it and if not, I will try to do a more exhaustive search.
Best regards, Marcos.

Thanks Marcos! I will give it a try and get back at you here to confirm if I got it to work!
 
  • Like
Reactions: marcost96

miklereverie

New member
Aug 21, 2019
14
11
3
Easier than you think without use of plugins.

You can point as many domains as you want to same WP install without needing to change site name as it's dynamically generated
Following you have 2 options of doing it: 1st with checking for use of SSL and second direct without any checks
Just find and replace in your wp-config.php following definitions enclosed between star lines (note that you will only find siteurl and home not request_url)

Code:
1st option
************************************

define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']); // used to define use of SSL or not

define('WP_SITEURL', SP_REQUEST_URL);
define('WP_HOME', SP_REQUEST_URL);

**************************************

2nd option
**************************************

define('WP_SITEURL', $_SERVER['HTTP_HOST']);
define('WP_HOME', $_SERVER['HTTP_HOST']);

**************************************

Edit: when you access your website dashboard by using any domain you'll see in Settings -> General that your domain is automatically changed to reflect issuer (either domain.com or domain.net for example)

2nd edit: playing with definitions and keeping one static will allow you retain your original host that you want static


Thank you so much! I will try this ASAP and let you know if I got it working!
 
  • Like
Reactions: marcost96

White Devil

Well-known member
Trusted Seller
Trusted Uploader
Jan 6, 2019
3,075
6,047
120
world
babiato.tech
Easier than you think without use of plugins.

You can point as many domains as you want to same WP install without needing to change site name as it's dynamically generated
Following you have 2 options of doing it: 1st with checking for use of SSL and second direct without any checks
Just find and replace in your wp-config.php following definitions enclosed between star lines (note that you will only find siteurl and home not request_url)

Code:
1st option
************************************

define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']); // used to define use of SSL or not

define('WP_SITEURL', SP_REQUEST_URL);
define('WP_HOME', SP_REQUEST_URL);

**************************************

2nd option
**************************************

define('WP_SITEURL', $_SERVER['HTTP_HOST']);
define('WP_HOME', $_SERVER['HTTP_HOST']);

**************************************

Edit: when you access your website dashboard by using any domain you'll see in Settings -> General that your domain is automatically changed to reflect issuer (either domain.com or domain.net for example)

2nd edit: playing with definitions and keeping one static will allow you retain your original host that you want static


yes its right bro
 

miklereverie

New member
Aug 21, 2019
14
11
3
Hey everyone!

I tried both methods and, due to specific problems with the client's hosting, the one proposed by Marcos turned out working just fine!

I did try the solution proposed by slvrsteele on a personal domain for testing purposes however, and it worked just fine as well.

So, thanks a lot to both of you, not only you helped me resolve my issue, but also provided me with two solid alternatives if the need arises to do this in the future.

Thanks everyone!!!
 
  • Like
Reactions: marcost96 and Mr G

touseef

New member
Aug 29, 2020
26
9
3
Use Cloudflare Redirection using simple page rule , there are tons of youtube videos you can search,
i my self redirect playanime.gq to playanime.ga
 

MrWolf

Member
Nov 26, 2022
91
42
18
Barcelona
I am traying to find that plugin long time ago and never found it!!
You got it¿¿ Nulled or untouched is No problem

Thz!!
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu