• Hi,
    I have googled for 3 days but without any solution ??

    The problem is that
    I have made a wp multisite installation with supfolder
    networkdomain.eu/subfolder1
    networkdomain.eu/subfolder2
    networkdomain.eu/subfolder3

    and so on
    then I have create virtualhost on apache to work as reverse proxy so it for each subfolders works as

    https://www.subfolder1.it ->networkdomain/subfolder1
    https://www.subfolder2.it ->networkdomain/subfolder2
    https://www.subfolder3.it ->networkdomain/subfolder3
    and virtual host works

    what is the problme?
    when I use in the browser
    https://www.subfolders1.it i get the correct page but link inside have path to networkdomain/subfolder1
    this is not properly what i want..
    is there a solution for automatic remapping of ech link reverseproxyed to the domain that come from? or should I chenge each one manually? ??

    Thanks so much

Viewing 1 replies (of 1 total)
  • Hi,

    You’ll need to rewrite the URLs on the fly with a plugin. This simple plugin should be a good starting point.

    You’ll probably need to make use of $_SERVER['SERVER_NAME'] in some fashion and then explode('.',$_SERVER['SERVER_NAME']) to split the the domain name from the TLD. From there, you should be able to grab the URI and replace it accordingly.

    Let me know if that helps. ??

Viewing 1 replies (of 1 total)
  • The topic ‘multisite by folder reverse proxyed via apache’ is closed to new replies.