Title: Using alternate URL&#039;s for wordpress
Last modified: August 20, 2016

---

# Using alternate URL's for wordpress

 *  Resolved [Kobor](https://wordpress.org/support/users/kobor/)
 * (@kobor)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/using-alternate-urls-for-wordpress/)
 * I have a working wordpress site, as example [http://www.example.com](http://www.example.com).
   
   I want to extend the install to a high available 2 server config. Now for simplicity
   i don’t want a cluster fs or something like that, just i’m syncing the files 
   from first server to second from time to time.
 * Now since i will have a loadbalancer before the 2 server, when i login can end
   up in any of the 2 servers . I would like to login to the first, so if i upload
   a file will get synced to 2nd.
 * Added 2 new hostnames : server1.example.com and server2.example.com, configured
   in the webserver etc.
    But when i try to view [http://server1.example.com/wp-admin](http://server1.example.com/wp-admin)
   it gets redirected to [http://www.example.com/wp-login.php](http://www.example.com/wp-login.php).
   I tried to login via [http://server1.example.com/wp-login.php](http://server1.example.com/wp-login.php),
   but after login i get redirected to the dashboard at [http://www.example.com](http://www.example.com).
   Tried to disable the canonical URL redirect, but didn’t help.
 * Any solution to this?
 * Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Abhishek Ghosh](https://wordpress.org/support/users/abhishek_ghosh/)
 * (@abhishek_ghosh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/using-alternate-urls-for-wordpress/#post-3165414)
 * > Now since i will have a loadbalancer before the 2 server, when i login can 
   > end up in any of the 2 servers
 * Thats happening due to wrong config.
 * First build setup separately from scratch with IP only. You can use heartbeat
   pacemaker for highly scalable 2 server setup. Loadbalancers should never interfere
   normal function. Which web hosting service you are using and which kind of technology
   for loadbalancer ?
 * By any means use 3 cloud database (with FQDN) with master slave config (use HyperDB
   plugin) – without caching your WP will load within 0.7 seconds. (ref : [http://wordpress.org/support/topic/mysql-or-mysqli-is-best?replies=24#post-3235729](http://wordpress.org/support/topic/mysql-or-mysqli-is-best?replies=24#post-3235729))
 * Make the new setup fool proof, then restore the backup from old setup to new 
   one. Then change the domain records for pointing the domain name.
 *  Thread Starter [Kobor](https://wordpress.org/support/users/kobor/)
 * (@kobor)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/using-alternate-urls-for-wordpress/#post-3165421)
 * You are answering the question i didn’t ask. While i could setup the loadbalancer
   to drop me allways on the same server based on source IP, this wouldn’t help 
   me tomorrow when my IP changes or when the other admins/posters need to login
   etc.
 * The question: can i make wordpress work on server1.example.com and server2.example.
   com to (without redirecting to the main site).
 *  [Abhishek Ghosh](https://wordpress.org/support/users/abhishek_ghosh/)
 * (@abhishek_ghosh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/using-alternate-urls-for-wordpress/#post-3165434)
 * > You are answering the question i didn’t ask.
 * Because it will never work with WordPress in the way you want. WordPress is very
   simple software.
 *  Thread Starter [Kobor](https://wordpress.org/support/users/kobor/)
 * (@kobor)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/using-alternate-urls-for-wordpress/#post-3165500)
 * For future reference: i was able to do what i wanted with this plugin:
    [http://odyniec.net/blog/2010/02/wordpress-blog-and-multiple-server-names/](http://odyniec.net/blog/2010/02/wordpress-blog-and-multiple-server-names/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Using alternate URL's for wordpress’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Kobor](https://wordpress.org/support/users/kobor/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/using-alternate-urls-for-wordpress/#post-3165500)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
