My pages point images to //nas/wordpress/image.jpg instead of //mydomain.com/wordpress/image.jpg

Discussion room for Wordpress, a weblog based social networking community.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
ameli0rate
I'm New!
I'm New!
Posts: 2
Joined: Mon Jul 17, 2017 11:11 pm

My pages point images to //nas/wordpress/image.jpg instead of //mydomain.com/wordpress/image.jpg

Unread post by ameli0rate » Sun Jul 08, 2018 2:32 pm

I've been playing with a site for a while now and never really used it for public viewing. I just found out that all images I upload point to http://nas/wordpress instead of using the actual URL.

That means that anything that doesn't know what "NAS" is (meaning, anything outside of my house) can't see any images.

I see that in the config, my WordPress Address (URL) field shows "http://nas/wordpress", and it's grayed out.

The Site Address (URL) is editable and shows the proper URL.

I suspect that is what causes Wordpress to insert media with a link to http://nas instead.

I'm loath to go in and edit the wp_config.php file willy-nilly, but I understand that my issue should be resolved if I insert these two lines in it;
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

Is that correct, or should I look elsewhere for a setting to tell my Wordpress install to not use "NAS" for the name?


Also, when I get that name changed, what will I need to go to get all my posts updated to not point to http://NAS but to point to http://mydomain.com instead?

Post Reply

Return to “Wordpress”