0 votes
1.6k views
by (1.5k points)

I hosted my WordPress blog on DigitalOcean.com and installed WP via ServerPilot.io

But when I navigated to WordPress Admin > Settings > General, fail to enable / unlock the URL textbox.

1 Answer

0 votes
by (10.3k points)

DigitalOcean offers multiple domains, subdomains addresses for a single Droplet. For example, you can give example1.com and example2.com URL address for the same Droplet created in DigitalOcean. The ServerPilot.io, who made the WordPress simpler for DigitalOcean has disabled the URL customization from Admin panel. Because you can give multiple URL/website address for the same App created in Serverpilot.io

Anyway, you can follow the steps to bring editable textbox to URL parameters to WP admin panel.

  1. Open wp-config.php from WordPress installed directory
  2. serach define ('WP_SITEURL', SP_REQUEST_URL) and define('WP_HOME', SP_REQUEST_URL);​
  3. replace it with define('WP_SITEURL','http://example.com');​ define ('WP_HOME','http://example.com');​ respectively.
  4. You can keep www or non-www URL structure
  5. Done..!
...