Root Relative URL's in Multi Site

In my multi-site application that I'm building, I will be mirroring content across ALL subsites. In the past, I have always put in URL's in Wordpress with the absolute URL when possible. However, that presents a problem with this website network as the home page is a group of images that take you to pages with each "Deal" on those pages. The home page on site "A" needs to have the images direct to pages on site "A" while the images on site "B" direct you to pages on site "B", and so on.

I've been doing a little research today and was wondering if anyone had experience using this plugin: http://wordpress.org/extend/plugins/root-relative-urls/ - and if so was your experience positive? Did you have any problems with it?

I'm thinking this might be the exact solution - assuming that I need a solution - to accomplish this.

Thanks in advance for your responses.

JDD

  • aecnu

    Greetings JDD,

    After a brief look at this proposed plugin it quickly caught my eye that it has not been proven to be WordPress 3.3.1 compatible and considering the nature of this plugin I would be hesitant to use it.

    However, that is nothing that a full web site backup and database backup would remove the fear from.

    In addition, it does not seem to be being updated which in my mind is another flag.

    Last but not least for my comments, please be advised this following statement that I pulled from one of the comments for this plugin:
    Am I understanding the readme correctly in that the plugin currently does not work in network mode if I am using sub-domains without a core hack? Also, does the plugin work if I switch over to a sub-directory network install?

    and the answer is:

    This is correct, and unfortunately neither are compatible without a core hack. The root of the problem is due to the pervasive use of absolute urls in wordpress. So at the moment only path-based installations are compatible and only if the core patch is applied (and I haven't updated the patch to work for 3.3 so you'd have to investigate the new version on your own.) And honestly after working with the MU system for wordpress for the past year I don't recommend it at all from a usability or architecture perspective. It's just a giant hack on top of the wordpress base install.

    This would be considered the final straw for me in even considering using this particular plugin.

    Thank you for being a WPMU Dev member!

    Cheers, Joe

  • James Dunn

    I noticed those comments as well Joe - that's why I was asking for others input. Even though I'm working on a development domain and can "break it and fix it at a moments notice", I don't really want to break it or have to fix it if I can avoid it. I've avoided some of those in the past by simply asking others for input.

    Any suggestions for accomplishing this?

    I found the following:

    http://wordpress.org/extend/plugins/abt-relative-urls/ (compatible up to v 3.3.3 - last updated 2/13/2012)

    http://wordpress.org/extend/plugins/urls-editor/ (last updated 2/8/2012)

    http://engipress.com/blog/wordpress-relative-urls-plugin/ (this one is NOT in the WP Repository, but looks promising)

    Thanks in advance for any suggestions/comments.

    JDD

  • aecnu

    Greetings JDD,

    I have never tried this myself and to date your first plugin suggestion was the first I have heard of it and I admit I did not research it further which is beyond the scope of this forum.

    However, I am now wondering if anyone else has had any experience with the few you have now listed?

    Anyone else out there have any experience with any of the plugins JD has listed in the post above or suggestions that may fulfill this mission?

    Cheers, Joe

  • James Dunn

    UPDATE: What I've tried and the results.

    First I tried this: http://engipress.com/blog/wordpress-relative-urls-plugin/

    This one works upon the principal of using a shortcode to denote specific URL's that you would want to turn into relative URL's. However, when defining the full URL, it pulls the main part of the URL from the Settings/General menu; however, unlike in a single site WP install, it appears that the domain name is not shown. This plugin doesn't appear to work with MultiSite - or I just didn't take time to dig deep enough to figure it out. Regardless, it did not work the way I wanted it to because it required me to put the shortcode for EACH URL that I wanted to make a relative URL. I was looking for something more "automatic".

    Next I tried: http://wordpress.org/extend/plugins/abt-relative-urls/

    This worked perfectly for my application. When I save a page that has links in it, they are automatically converted to relative links. However, if you NEED to have a specific URL, you can use a shortcode to exclude that specific URL from the relative URL changes.

    We can mark this thread as closed now, but I wanted to post my results here for any future searches. Hopefully, my experience will prevent someone else from spending inordinate amounts of time to find a solution similar to what I was looking for.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.