Question : wp-config change url wp-config
Answered by : cautious-caterpillar-kv8g7amgg66x
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Source : https://prfvr.com | Last Update : Fri, 29 May 20
Question : home url wordpress
Answered by : lokesh-ramchandani
$url = home_url();
echo $url; // Output: http://www.example.com
$url = home_url( '/' );
echo $url; // Output: http://www.example.com/
$url = home_url( $path = '/', $scheme = 'https' );
echo $url; // Output: https://www.example.com/
$url = home_url( $path = 'example', $scheme = 'relative' );
echo $url; // Output: /example
Source : | Last Update : Mon, 15 Feb 21
Question : define home url wordpress config.php
Answered by : ash-rlirp3kxbaqe
// Add the below to your wp-config.php file (replace example.com with your domain)
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Source : | Last Update : Wed, 22 Dec 21