I want to make a multi-lingual site. Firstly I created a wordpress website. Then I installed wordpress on another site and changed the table prefix of the second site to the one of the first site. So now these sites are sharing the same database and their addresses are http://academy2.hollywoodpress.biz and http://en.hollywoodpress.biz . However, http://en.hollywoodpress.biz is not working but http://en.hollywoodpress.biz/wp-admin is working. How can I fix this problem?
Why you don't use WordPress multi sites feature.
http://codex.wordpress.org/Create_A_Network
You can make WordPress use somewhat dynamic request hostnames using the following in your wp-config.php
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST']);
This way WP will set the site and home URL addresses properly for each domain which is used to request a WordPress page. I think wp-admin will use the value which is determined in the wp_options table (home and siteurl rows).
If you need to display different content on different domains altogether, then you should consider either multisite or two separate WP installations.
If you're only looking to translate content and are OK with either subdomains (en, de, es, etc.) or subfolders (en, de, es, etc.), consider using localization plugin such as Polylang or WPML.
I could solve the problem. The problem was that I used subdomains for separating domains and they didn't work for WPML. I used a domain and I could finally separate domains.
Related
We have a single site, in this we want multiple subdomain with the same website, for that we are using wildcard subdomains, So our requirement is to create country/subdomain specific homepages for each subdomains.
Example: india.example.com it redirects to homepage1
africa.example.com it redirects to homepage2
Is there any possibilities for this?
Setup multisites using WordPress Multisite feature.
Suppose if you setup two multisites e.g. africa.example.com and india.example.com. Go to africa.example.com/wp-admin >> Appearance and select the preferred theme. Go to india.example.com/wp-admin >> Appearance and select the preferred theme.
Both the subsites will point to different homepages. If you want to customize the homepages then you need to create child themes and add changes accordingly.
You should setup the Multi-Site and follow the below URl will help for the how to setup multi-site.
https://www.wpbeginner.com/wp-tutorials/how-to-install-and-setup-wordpress-multisite-network/
Alright, the primary domain is: gdengines.com. I also own .net & .org. I want it so if a user types in .net or .org it will display the primary domains contents. However, the LINKS will be for that URL (the easiest way to explain this is by using the following plugin as an example:
Multiple Domain (plugin page) - Multiple Domain allows you having more than one domain in a single WordPress installation. When there is more than one domain set in your host, all links and resources will point to the default domain. This is
the default WordPress behavior. With Multiple Domain installed and properly configured, it’ll update all link on the
fly. This way, the user navigation will be end-to-end under the same domain.
However, the plugin doesn't work with multisite installations.
I have WordPress MU Domain Mapping installed, but it's not helping for this issue.
Anyone know a fix other than setting up .net & .org to redirect?
You can use on the other domains .htaccess file with.
Redirect 301 / http://www.your-url.com
If you have to on each domain then redirect the vistor automatic to your main domain.
I have a question. I am trying to set up two domains under one wordpress instance.
For instance, I have a wordpress site on www.site1.com
I have another domain called www.site2.com. Now, I want to run the same wordpress site that is under www.site1.com on www.site2.com
I tried using the wordpress domain mu mapping plugin
http://wordpress.org/plugins/wordpress-mu-domain-mapping/installation/
But it only allows me subdomains or directories of www.site1.com
Can anyone help?
Add
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] );
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] );
to wp-config.php.
If you meant pointing 2 or more domain names to a single wordpress install, answer is yes you can but it won't work. Wordpress is designed only to host one domain name, if you point another domain name to your wordpress, it will return 404. The other way around to do this is redirect your other domain names to your main domain name (i.e. redirect website2.com to website1.com)
If you meant pointing 2 or more domain names to a Wordpress Multi site install, here's an article that will help you setting up domain mapping in your Wordpress multisite: https://rtcamp.com/wordpress-nginx/tutorials/multisite/domain-mappinng/
We need to set WordPress Multisite Network to make it work. I have successfully set my wordpress v4.1 installation to work for multiple sites and multiple domains by following this and this.
Please note that you will have to make sure editing to php files correctly otherwise that will completely crash your site if you make a mistake. Moreover a correct setting of htaccess is also important.
I have an openshift wordpress blog running at http://blog-example.rhcloud.com/ and added CNAME records in my DNS management as follows.
example.com
www.example.com
and works fine. When i type, this leads to my blog home page.But the pages and links in the blog actually leads to openshift naming space. i.e., blog-example.rhcloud.com/?page_id=7
I just want to mask blog-example.rhcloud.com/ to example.com every where in my app.I would be happy to provide further information if any thing required to analyse the issue.
PS: I bought the domain from Big Rock and using their console for CNAME entry.
You need to go into your WordPress admin and change the url on the settings or options page to use your custom domain instead of the app-domain.rhcloud.com one. If you want to change it directly in the database (which i don't recommend) it is in the wp_options table under home and siteurl i believe... But I DO recommend using the WordPress admin.
You need to go to
Settings=>General=> Site Address(URL),
Settings=>General=> wordpress address(url)
and update it to your custom domain.
Follow this article. it's step by step manual http://www.devua.co/2016/05/20/how-to-run-blog-on-openshift-complete-guide/
I have two domain on separate hosting. On the first I can setup a.mydomain1.com. On the second I can istall wordpress as www.mydomain2.com/wordpress. Now I found a plugin for reidirect to an external website.
My goal is to show wordpress site on a.mydomain1.com. How I have to configure the record in the admin panel of first domain?
Thanks a lot
I think you should use WordPress Multisite.
WordPress includes new multisite features, meaning that it can run many blogs, even with their own separate domains, on one WordPress installation.