How to change Wordpress URL from wp-config file

Modified on:
wordpress url change wordpress url

To change WordPress URL you need to put this code into the wp-config.php file:

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

Keep in mind that you need to change the domain name from example.com to your domain name.

 

  • Ubegrenset antall nettsider
  • 24/7 Live Støtte
  • Enkel Nettsted Bygger
  • 2X WordPress optimalisert hastighet
  • 30-dagers Tilbakebetalingsgaranti
Ta tak i begrenset tidsavtale!
kr 19
99
/mo
kr209,97
kr59,97 i 3 måneder
Lagre 71%
Kom i gang