ronniead
Member
Posted 2 years ago #
I've noticed that when I add an image to a page/post it includes the FQDN as the location. so rather than mysite.com/files/xxxxx, it adds the image as mysite.wordpress-multisite-install.com/files/xxxx
Is there a simple fix for this (rather than editing the html manually)
Thanks in advance...
p.s. yes the image still comes up, but I *believe* for SEO purposes it's better. Also I'd just prefer it this way for other reasons. ;)
p.p.s I'm using the Domain Mapping plugin to resolve the names
Are you using a plugin to handle the domain name redirect? I thought they took care of that...
ronniead
Member
Posted 2 years ago #
Yes, I'm using Domain Mapping plugin. As the plugin is a manual install I don't get notified of any updates to the plugin. I'll find out and report back.
ronniead
Member
Posted 2 years ago #
You mean cause it's in mu-plugins ;) Manual or not, if a plugin is in plugins, you get notified of updates. Alas not in mu-plugins.
Which is besides the point. I'm tagging this for the dev, cause I THOUGHT it did that by default. Are you redirecting the admin to the new domain? There's a checkbox for it.
markb1439
Member
Posted 2 years ago #
FYI, that plugin is no longer supposed to be installed in mu-plugins. They now say to install it the "normal" way and network activate it.
The manual part is that sunrise.php needs to be moved manually to wp-content, and sunrise needs to be activated in wp-config.php by uncommenting or adding a line of code.
ronniead
Member
Posted 2 years ago #
Ah, thanks! I unchecked the following option and now image paths are inserted correctly:
Redirect administration pages to site's original domain (remote login disabled if this redirect is disabled)
What does it mean remote login is disabled?
Also, you were correct, i originally had it in the mu-plugins. And moved it as per the new instructions...thanks!
If you want the uploaded media to have the mapped domain's url disable the remote login feature & the redirect admin pages to original url.
that plugin is no longer supposed to be installed in mu-plugins
There is no harm in it being installed in the mu-plugins folder other than you won't get notices about new versions.
markb1439
Member
Posted 2 years ago #
that plugin is no longer supposed to be installed in mu-plugin
Sorry, I mis-spoke. I should have said it's not longer required to be installed in mu-plugins.
markb1439
Member
Posted 2 years ago #
If you want the uploaded media to have the mapped domain's url disable the remote login feature & the redirect admin pages to original url.
Ron, what's your recommended strategy on this? For example, if a user has mysite.wordpressmultisiteinstall.com, and they map mydomain.com to it...and then they later decide to stop mapping that domain to it...what happens to the URLs of the media that's already been uploaded?
what happens to the URLs of the media that's already been uploaded?
Both URLs work with any combination of the DM settings. What the settings above affect is the URL that the admin area & hence the media manager are running under.
I would imagine if you stopped using the plugin, the images would need a DB search/replace to point to the 'real' location.