I have a site on WordPress with Polylang plugin for multi-language.
I want to set different language to different domains, for example:
http://english.com - for English
http://french.com - for french
It Will be nice to have one hosting account, but two domains. I think that I should pay attention to .htaccess and redirects.
What is your opinion? Thank you.
Polylang seems to support subdomains or domains per language.
You go to Dasboard > Languages > Settings and there, you have an option "The language is set from different domains".
Here is an excerpt from the documentation describing this option:
it is possible to use subdomains (or a different domain per language).
All your subdomains (or domains) must point to the same directory
(where the WordPress index.php is present). Polylang checks if your
domains or subdomains are correctly accessible. Otherwise, Polylang
returns an error message.
And here you can find a discussion in WordPress support forum about this topic.
I think you should go with the subfolder solution as well. Also to keep the "strength" of the website at one .com domain and not multiple domains (or subdomains).
But both ways should be possible with one hosting account. Its more a question of the best solution for you.
For the exact same site content displayed in different languages, I don't think it's a good practice to use different domains for each language. As an eg, http://www.cbsrwstaging.com uses different languages, the language can be changed from the right top 'information' menu. For each different language it simply changes its URL, eg http://www.cbsrwstaging.com/de shows the site in german , http://www.cbsrwstaging.com/ja/ show the contents in Japanese etc. This site makes use of the WPML plugin.
Related
Is this possible to have multi language website by wpml that each language has specific domain without clone website to a new folder? I am using Language per parameter so it doesn't need to have different folders and use lots of storage resources , is this possible to use different domain and dont use extra storage?
Yes, as per their documentation:
...For example, if you have a German translation of your English
website, you can set it to have a different domain:
example.com → English
example.de → German
https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/
Note: on top of modifying the WPML settings in the wp-admin dashboard, you will also need to configure the DNS settings correctly for both domains - that's on the side of the domain registrar.
I'm building a WordPress website for a client and can't figure out what to do here. I'm using translatepress to make my website multilingual and the client wants to have another domain for different language. So the default domain is example.com but English version is example.com/en . Is it possible to add another domain which replaces example.com/en and is still functional by pressing all the links? So it's like example2.com points to example.com/en , but not as a url forwarding, but it replaces the whole example.com/en part completely. What are my options here? Thanks.
You can have different sites in a network on different domains. It is just on the other domain, not on both. Since WP stores internal links as absolute URLS, you need to create the sites on the correct domain from the start, or use wp-cli or similar to re-write existing links when you change.
I was about to recommend the plugin I have used, but see from https://wordpress.org/support/article/wordpress-multisite-domain-mapping/ that from 4.5 it's a WP native feature!
Note: i don't use translatepress but have different languages as different sites in a network. Since you talk about sub-domains I'm assuming you do something similar
Strange question. Basically I want to test out the success of two possible domain names, so I want to run a website duplicated over two domains. Is that possible?
So, for example, both WEBSITE1.com and WEBSITE2.com would have the exact same content coming from the same wordpress set up.
I know that a redirection is possible but that reverts to a different domain, which is not what i want.
Thanks!
Ben
WordPress includes the ability to create a network of sites by using the multisite feature. This article contains instructions for creating a multisite network.
check below this link for how to set up multidomain on WordPress
https://codex.wordpress.org/Create_A_Network
Why not? In wp-config.php add check for domain name and load different database credentials.
The problem will be when adding content.
Yes, you can: https://codex.wordpress.org/Installing_Multiple_Blogs#Single_Database
Ps. You will get duplicated content issue with Google if you index both sites in Google.
I have a project with WordPress for a multi-language, multi-country site.
i want to have a URL structure like:
domainname.com (Main site) (English)
fr.domainname.com (French)
ko.domainname.com (Korean)
Also i don't want a URL structure like:
domainname.com/fr
domainname.com/ko
i need to make it for 20 languages.. Seems WPML & Multilanguage by BestWebSoft Plugins will do translation well but with domainname/fr structure..
To achive my needed url structure, i must want to create 20 subdomains for 20 languages? also i want to keep 20 different wordpress sites for each language? Or any simple way is there? Looking forward Your Replies, Thanks in advance
With WPML this is no problem. You can opt for subdomains per language instead of directories or ?lang=xx.
In the Hosting administration, add the language sub-domains and point them to the directory with your wordpress setup (eg /public_html).
You will only have one Wordpress setup running, no matter how many languages.
I am about to develop two websites using wordpress with its multisite functionality. So www.domain1.com and www.domain2.com should point to the same wordpress installation.
The problem I have is that the domains are in productive use, so I cannot make them point somewhere else until development is not finished. I also do not have (and do not want to buy) two unused domains to create the develop setup, so what I would like to know is:
Can I setup subdomains for development and change it into »real« domains later on?
What I would like to know is how to setup the project so that after development is finished, deploying is as painless as possible. The project setup should be close the »real world scenario« it is meant for as possible and I am interested in any kind of hints, advises, links and stuff which guides me setting up the projects.
Which are the pitfalls, where are the »dangerous« parts?
Greetings...
I'd suggest the following route:
Install the Multisite with a sub-domain set-up in a third domain that will be the Main Blog (example.com). In your host, you'll need Wildcard subdomains enabled. Otherwise, each sub-domain has to be manually created. With the wildcard, creating a new site is a matter of clicking Add site.
Then, in /wp-admin/network/sites.php, add two sites: domain1.example.com and domain2.example.com. And develop until they are ready.
You'll need the plugin WordPress MU Domain Mapping to map Top Level Domains to the sub-sites/sub-domains. With it, domain1.example.com will be a fully working domain1.com.
After all this is in place, is just a matter of changing the NameServers to point to the Multisite addresses.
Well, it seems simple but Multisite is not for the faint of the heart. But, one of WordPress.org wizards, Mika Epstein, aka Ipstenu, has two great eBooks that cover lots of ground. Please, check the following Answers in WordPress StackExchange where I cite them.
An interesting case study document.
Plugins of interest:
BackupBuddy: paid solution, although it's considered Beta, exporting and importing sites out and in the networks works ok.
Add Clone Sites for WPMU (batch), in the Repository, although hasn't been updated in a while, still works fine, doesn't exports/imports, but useful for duplicating sites inside the network.