Wordpress change the language according to country - wordpress

I am setting up a website with WordPress and WPML. Is it possible to change the language automatically according to the country? Maybe working with IP or something else.
I am looking for Plugins or a solution, which are single to configure.
I found a solution which uses the browser language. That´s not exactly what I want.

In WPML this is only possible via Browser language redirect
But you could use IP2Location Redirection plugin to redirect users according their IP address.

This is possible. I've faced with this issue earlier and made a plugin for this purpose:
WPML automatic language with GeoIP. It
automatically changes the load of language in WPML based on the GeoIP service

Not possible with WPML but you should be able to do it with a plugin like IP2Location Redirection.

Related

Wordpress Multilingual plugin subdirectory lanauge

I'm currently trying to install a Wordpress website, and providing it through multiple languages. I've found a bunch of plugins to manage the translation.
But I'm still getting stuck to setup WordPress to be able to have http://www.mywebsite.com/en/ and/or http://www.mywebsite.com/de/.
I've found the language switch redirecting to the same page, with the correct subdirectory, but I got an error 404. It looks something should be enabled globally on Wordpress, or even changing the Apache configuration?
Thank you for your future help.
You can User this plugin for making multilingual you site.

wpml languages redirecting to default

I'm not too familiar with WPML and I site I am working on is using it. Everything was working fine, but now it has been noticed that when you go to a different language domain (e.g. www.domain.com/es/pagename) the site seems to rewrite the address to (www.domain.com/pagename) removing the language directory from the web address making some language pages unaccessable.
This is not occurring on all pages though.
I checked the htaccess file and the rewrite are their.
Any help or information on this would be great.
Try check settings of WPML plugin http://take.ms/hFuqg
Problem ended up being 'Custom Permalinks' plugin. Doesn't play nice with WPML.

Custom url theme for drupal

We got site written on Drupal.
We want to make Nginx caching but there is one problem we met.
Nginx caching works perfect, but if user A will go to page
http://domain.com and nginx cache it. User B use mobile theme http://domain.com/?theme=mobile and went to http://domain.com/ , he will see desktop version instead of mobile version.
I want to make something like http://domain.com/any/url/path for desktop version
and http://domain.com/mobile/any/url/path
Is it possible? Where can I found information about how to do it?
There is this module named Mobile Switch to automatically switch between themes depending on the device used to visit the website : https://www.drupal.org/project/mobile_switch
It was easily than I expect.
We use ThemeKey module so I added some rules depends on url like "drupal:path visuallimpaired/%" and just make my own plugin that use hook_url_inbound_alter and hook_url_outbound_alter to add and remove prefixes, and it works.

Is it safe to switch to https on a Wordpress site?

I would like to get a SSL certificate for my WordPress site. Is it safe to switch from http to https? My host says it's an automatic install, but shouldn't I change all the URLs?
In my theme I have hard coded URLs, but also WordPress permalink PHP codes for example. The hard coded URLs can be changed, but how about the URLs in the Wordpress code itself and all the plugins? If I change that and there's an update it will all be lost I suppose.
I would like to have https all over the website. Will the site and all the plugins still work after I switch from http to https?
It is safe, but yes, you will have to change the hardcoded urls or establish redirections, the first option is better. There are plugins that help you with this, remember all internal linking in your posts has to change, too.
You can read here. This question is related.

Forwarding slash in Wordpress URL

I am moving my site from Drupal to Wordpress.
In Drupal, I can easily give an alias to URL and this alias could be anything., ie: www.example.com/abc/xyz/hello.html
But in Wordpress, it appears that I cannot do that with WP out of the box.
Any hint on how to do the same with Wordpress? I need to keep URL consistence.
Thank you
I just found out this plugin https://wordpress.org/plugins/custom-permalinks/ and used it to add caracters like slashes and points, to the urls of a website i am moving to WordPress, so far it's working.
Hope it will help !
You may be interested in Settings -> Permalinks, but I think you want more than that.
Take a look at the feature list for the redirection plugin. This allows you to setup redirects to other pages or do pass through redirections. If this isn't what you are looking for then I think there are a couple other plugins that may accomplish what you want. Hope this helps!
You can change the default urls in the Settings -> Permalinks. You should also have the option to change the permalink when you add or edit a post. There are also plugins available for permalinks (http://wordpress.org/extend/plugins/advanced-permalinks/)

Resources