Do not view Dominio my site

Asked

Viewed 33 times

1

built a homemade server ( debian Linux + no-ip+ apache + mysql + wordpress + clud dns ).

my problem is that :

it accesses www.prensanuble.cl BUT when I try to access any link of the site ceases to show the domain ie:

http://www.prensanuble.cl/meu_diretorio ( should show so in the browser) http://prensanuble.ddns.net/meu_diretorio (this showing so, ie , does not show the domain but the NO-IP)

Can you give me a hand please? I have access to the entire server. Thank you!!!

  • You have correctly configured the server name in the Wordpress file wp-config?

  • @Andersoncarloswoss, wait a minute... I’ll see you later.

  • @Andersoncarloswoss define('WP_DEBUG', false); define( 'WP_HOME', 'http://prensanuble.ddns.net' ); define( 'WP_SITEURL', 'http://prensanu.ddns.net/html' );

  • I believe that’s the problem, I’ve never used WP before, but I believe faithfully that WP_SITEURL is used to generate the URL in the body of the page and, therefore, your internal links appear with this domain.

  • @Andersoncarloswoss , helped me a lot solved 99% of the Link. no Theme has a link called Start that still sends no-ip... I’m restarting the server to see if it modifies something.

  • I will convert the comment in response so you can specify the topic as solved.

  • @Andersoncarloswoss, muiiiiiiiiiiiiiiiiiiiiito thanks man !!!! God bless you very much, thanks for the help.... Have a great weekend :D

Show 2 more comments

1 answer

1

As clarified in the comments, you kept the setting WP_SITEURL with the domain of NO-IP:

define('WP_HOME', 'prensanuble.ddns.net'); 
define('WP_SITEURL', 'prensanuble.ddns.net/html');

The configuration WP_SITEURL is used internally by Wordpress to generate the URL in the body of the page so, regardless of the domain you are using to access it, the Urls will be generated under the specified domain.

Just change to:

define('WP_SITEURL', 'www.prensanuble.cl');

That should work as expected.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.