The MU forums have moved to WordPress.org

Change WPMU's outputted href URL (1 post)

  1. lodbot
    Member
    Posted 16 years ago #

    Firstly, I searched all over the place and couldn't find much. Here it goes ...

    My current situation:

    • blogs are served from blog.domain.com/<blog_name> (the non-preferred URL)
    • I setup a proxy for each blog so that blogs are accessible from <blog_name>.domain.com/blog (the preferred URL)
    • I setup mod_proxy_html to change the href URLs that are outputted by WPMU so the preferred URL structure is used (<blog_name>.domain.com/blog)
    • I setup a rewrite condition and rule that redirects non-proxy requests from the non-preferred URLs to the preferred URLs.

    I'm finding that the work Apache must do to parse each HTTP response and alter the href URLs is consuming too much processor time. I want to configure WPMU in such a way so that it naturally outputs the preferred URLs. I tried fiddling with the "home" field by changing it from blog.domain.com/<blog_name> to <blog_name>.domain.com/blog, but after I made this change I got redirected to wp-signup.php when attempting to access the blog. How can I go about changing the href URLs outputted by WPMU so I can avoid using mod_proxy_html?

    I'm running 1.2.3. Let me know if you need any more clarification. Thanks in advance!

About this Topic

  • Started 16 years ago by lodbot