Forums

Load Balancing and Dev - Dynamic URL? (3 posts)

  1. ecksfiftyone
    Member
    Posted 1 year ago #

    I will be hosting wordpress.
    I have 3 live servers (Load balanced) and a Dev server.

    There will be no uploads or anything, and all posts are database driven.. so this should be fine.

    The client I am hosting for will make use of the WP-Admin portal to modify their Theme directly.

    I want WP-Admin to be used from dev.
    NO WP-admin on the 3 live servers.
    When the client modifies and tests the theme code, I will have those changes pushed out to the live servers. I can handle this.. no problem.

    Where I have the issue is with the hard coded URLS (Site url and wordpress url) When they are on Dev.. I need them to test everything using the url http://dev.mysite.com, but on live it should be http://www.mysite.com. (And even further, I'd like to test individual servers with ww1.mysite.com, ww2.mysite.com, ww3.mysite.com)

    When I set the Site and WordPress urls, all links go to those hardcoded urls making dev and individual servers impossible. I want the paths to be relative, but the url fields will not accept single slashes to indicate "the url I'm on" rather than a set static url.
    Do I need to setup Multisite?

  2. GRAQ
    Member
    Posted 1 year ago #

    Provided you use all the built in functions like bloginfo('siteurl') you should be alright?

    http://codex.wordpress.org/Function_Reference/get_bloginfo

  3. ecksfiftyone
    Member
    Posted 1 year ago #

    unfortunatley that doesnt really help.

    I'm not trying to get the variables...

    The wordpress config makes you speciafy a URL for the site and wordpress (Usually the same) I need this to be dynamic, yet wordpress insists on a static url.

    It wont let me put a variable in the field.

Topic Closed

This topic has been closed to new replies.

About this Topic