WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i'm running a wordpress free classified website and the address is http://www.gosell.co.uk what i need is if a user from london open this url then it should be concatenated with http://www.gosell.co.uk/london or london.gosell.co.uk is that possible? shall i make a new function or wat? Thanks in advance.

share|improve this question

Try the wordpress maxmind plug-in. I've never used it myself, but it should do the heavy lifting of identifying a user's location by IP address.

You'll have to add some functions to dictate what to do with that data in terms of redirecting visitors (the plug-in only figures out where they are). You'll probably also need to add bits to handle situations when the location isn't recognized (or isn't in the UK, for example).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.