• i have two mac servers. one is hosting my wordpress installation. ( test.example.com/wordpress ) the other is the main production server ( live.example.com )

    i’d like for users to use the live.example.com url and only see that. i have a url rewrite that is working for the wordpress homepage, so if they go to live.example.com/wordpress, they see the wp homepage but clicking on any of the links within wordpress (categories, blog links, etc) sends them to the test.example.com server and the url changes.

    how can i configure this so the url stays at live.example.com/wordpress/ but all content is coming from test.server/wordpress/

    thanks!

Viewing 1 replies (of 1 total)
  • Apparently, your URL rewrite just fetches the homepage HTML file but everything is still pointing and retrieved from your test site. Two ways to do this:

    1. Install wordpress on your live site, configured to its own DB.

    2. Install wordpress on your live site, but configured to fetch the data from the same DB that your test site uses.

    3. If your URL rewrite config rewrites everything perfectly, then go to WP General Options http://test.example.com/wordpress/wp-admin/options-general.php and change all those to live.example.com. All your live visitors will indirectly use the test site.

    The first is best — The production server should not rewrite or even bother with the test server anyway. Remember though that you will have two copies of the theme files to maintain.

    (Maybe you can have one copy of the theme files, but I don’t know whether you can mount a network folder on a Mac filesystem.)

    The third kills http://test.example.com/wordpress .

Viewing 1 replies (of 1 total)
  • The topic ‘url rewrite (proxy) with two servers’ is closed to new replies.