• Resolved José Borregana

    (@ladonegro)


    Hello!

    I have a Cloudflare making a 301 redirect of my site from any https://www.example.com to https://exemple.com . All is working find except for the base url of wordpress instalation that i can′t change and is https://www.example.com.

    That shouln′t be a big issue execpt, that sitemaps report url based on WordPress base url ( https:// and not https:// ) making robots getting lost in the 301 redirects and indexing only a few pages.

    Is there a safe way to change the base url without compromising the WP instalation?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    You cannot change the home URL and site URL fields in settings?? Any administrator user should be able to. The settings can be set directly in the DB’s options table through phpMyAdmin, which is usually accessed through your hosting account.

    Thread Starter José Borregana

    (@ladonegro)

    I guess i made wp-config.php read only for security reasons since i work on a lame vps…
    I dont have a phpMyAdmin installed because is a RAM waste on a low budget VPS.

    No solve this i opened wp-config.php
    Edit:
    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’);

    Changed to
    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’);

    Problem solve. Thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Probleam with base URL’ is closed to new replies.