Title: PHP link based on language
Last modified: August 20, 2016

---

# PHP link based on language

 *  [Carmdq](https://wordpress.org/support/users/carmdq/)
 * (@carmdq)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-link-based-on-language/)
 * Hi,
 * I’m running a multisite with mysite.com/en and mysite.com/es.
 * I’m trying to create a link to the blog on each site, based on which site the
   visitor is on.
 * Something like if visitor is in mysite.com/en go to mysite.com/en/blog else go
   to mysite.com/es/blog.
 * Thing is I’m quite PHP ignorant and I’m not sure where to begin.

The topic ‘PHP link based on language’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Carmdq](https://wordpress.org/support/users/carmdq/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/php-link-based-on-language/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
