Support » Networking WordPress » Image paths of newly mapped MU site refer back to host site path structure

  • Resolved BayLev


    Hi all

    I hope someone can lead me on the right path, as I’m sure there is a workaround for this. I’ll try to be as brief as possible:

    – Issue: I have set up a new site in a MU network, which has been mapped to a different domain name (set up as an ad on domain in Cpanel), so it looks like the site it has nothing to do with the MAIN MU site. So, instead of it correctly displays as

    However, images still reference back to instead of being mapped as well i.e. newblog/images/example.jpg

    When uploading an image to newblog/images and trying to view it in a browser it just returns a 404. I would say, when the path for an image refers to a different site as opposed to the site one is visiting, it doesn’t look professional at all.

    – What I did initially (may help to solve the issue): a) Added a new site to a MU setup b) Mapped the new site with a distinct domain name through the WP MU Domain Map plugin c) Set the new site up as an add on domain in Cpanel.

    Looking at the issue with the images, it still just looks like the domain name displays uniquely, however, everything else references back to the main MU site. When checking out the new site on a mobile device, it would not even start it up and direct straight back to the original MU site – not the new one.

    Quite some introduction. I hope someone can shed a light.

    Many thanks!!

Viewing 15 replies - 1 through 15 (of 16 total)
  • In step b, what of the five options did you check?

    Hi Ipstenu

    Thanks for your response. I checked the first 4 options. Reading through the options again, it starts to sound like I may have uncheck one or another. Which ones would that be to be sure.

    CHECKED – Remote Login

    CHECKED – Permanent redirect (better for your blogger’s pagerank)

    CHECKED – User domain mapping page

    CHECKED – Redirect administration pages to site’s original domain (remote login disabled if this redirect is disabled)

    NOT CHECKED – Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues.

    Thanks again for the help.

    Hello all

    Don’t want to look impatient, but was wondering, if someone can help me finish finding a workaround for the issue described in the first post.

    As Ipstenu pointed out, it may have something to do with the selected options in the MU WP Domain Map plugin (also described above – which options are currently checked and which are not). Just to be one the safe side.

    I appreciate anybody’s help. All the best…

    CHECKED – Redirect administration pages to site’s original domain (remote login disabled if this redirect is disabled)

    Uncheck that.

    Hi Ipstenu

    Thanks for getting back to me. A heads up, I have figured out the issue with the image paths, so that’s all good now (it was more of a misunderstanding on my behalf).

    However, the mobile redirection issue is still on. I have unchecked the option above, waited, cleared the cache and cookies – to no avail. keeps redirecting back to the main MU site (on mobile only). It’s a real pain and I am thinking about scrapping the whole MU idea.

    Of course, in Cpanel, which is just a child theme of the mainsite MU network, ist set up as an ad-on domain that links to the file branch of mainsite. But then the domain mapping plugin sorts that out and redirects correctly to – just on mobile it does not seems to have any effect whatsoever.

    I’ve run out of ideas… :-/

    Yeah, sorry, I’ve been busy with work and travel for work 😀 keeps redirecting back to the main MU site (on mobile only).

    Sounds like a caching issue or a plugin one. Are you using any plugins to redirect mobile content?

    Hi Ipstenu

    Hey, that’s ok of course. Better traveling for work than not traveling at all. I am happy that I’m getting help here.

    Well yeah, I don’t know. The hosting guys said they can’t help either and that it is most likely a problem on the WP side of things. I also thought it may be some major caching issue, but I tried on a different mobile and it’s the same story. Leaves me to think it may be something to do with the domain mapping plugin.

    Do you know of a good plugin that can handle mobile redirect requests? I find it a little botched up having to use a tool for every instance, but if that’s the only solution I am happy to give it a go.

    Thanks again!

    Let’s start the other way 🙂 What plugins are you using right now for caching?

    Hi there

    Actually I am not using any plugins for caching, at least from what I know.

    On another note, when I typed in into the mobile browser, it redirects correctly and stays on the page – once you return to from another website, it goes straight back to (all this on mobile). I added this here, just in case…

    But yeah, I have no experience when it comes to caching plugins and how they may help solve the issue.


    Well… Something you already have is doing this. Multisite (and WordPress) have no knowledge of mobile redirects out of the box. You need to look into caching, and any other plugins you’re running.

    Thanks again for your answer.

    I have checked and I am not running any plugins that deal with caching, redirection, mapping (or even mobile) other than the domain mapping plugin.

    Leaves me to think that maybe the plugin just doesn’t handle the mobile side of things well or it has something to do with the way is set up in Cpanel hence it links to public_html/, but then again it has to. Otherwise won’t be able to retrieve the child theme within the MU network install).

    Why would everything work fine on desktop and mobile has it its own way? Is there not a way to set up some permanent redirect rules in .htaccess?

    Just some brainstorming before resolving back to single WP installs.

    Thanks!! 🙂

    I say this with 100% assurance: Neither Multisite nor the domain mapping plugins have anything to do with redirecting to a mobile site.

    The only way Domain Mapping would possibly do that is if you added in a mobile domain to the plugin and set it as primary for a domain.

    I believe you 🙂

    I just realized something, how stupid I didn’t see or try this before. I was always typing into the mobile browser without the www. Doing it with the www prefix, it actually works…

    I’m sure, I’m only one or two steps away to work around that, so that mobile understand that and are the same.

    I’d be super helpful, if you could lead me on the right track in this last instance. I guess I was going in loops before, like mad…

    Thanks so much for all your help so far. Really appreciate it!

    Map both of them with the domain mapping plugin to their site? I don’t know why your site seems to think non-www means mobile, though.

    Done and dusted – mapped the www. version in the newsite doamin mapping panel too and it works! Man, I owe you a few pints.

    By the way, is there any advantage or disadvantage between having new MU sites set up as sub-domains or sub-directories or is it just preference? For some reason my MU install came as sub-domains disabled (define(‘SUBDOMAIN_INSTALL’, false);)

    I also find it strange that is at the same search engine rank and google PR as (I guess because of ‘permanent redirect’ enabled). Not that it’s a bad thing, but as a new site it doesn’t seem realistic.

    Anyway, no more questions. You’ve helped me heaps. Thanks again mate (I can finally start working on that newsite)!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Image paths of newly mapped MU site refer back to host site path structure’ is closed to new replies.