Search
 
SCRIPT & CODE EXAMPLE
 

PHP

define url wordpress

//It is possible to set the site URL manually in the wp-config.php file.

//Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.

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

//Important! Do not leave this code in the functions.php file. Remove them after the site is up and running again.

update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Comment

change site url wordpress database

options table
1. siteurl
2. home

######## OR ########

// Add to top of wp-config.php
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Comment

update url wordpress

<?php
update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Comment

change url wordpress

/*
This is the safer way to do it.
Upload this file to your active theme directory. 
Use your own URL instead of example.com, obviously.
Refresh in http://example.com/wp-login.php after adding/updating functions.php
Remove the lines or the remove the file after the site is up and running again.

more information here: https://wordpress.org/support/article/changing-the-site-url/#edit-functions-php
*/


update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Comment

PREVIOUS NEXT
Code Example
Php :: get object value by key php 
Php :: laravel request protected prop 
Php :: document ready wordpress 
Php :: php get api 
Php :: PHP Iterables 
Php :: laravel guard 
Php :: wp_mail multiple recipients 
Php :: using custom fonts in php 
Php :: install php7 
Php :: month php written out 
Php :: livewire model bind item in array 
Php :: This domain is not registered with Tiny Cloud. Please see the quickstart guide or create an account. 
Php :: validate number should by 12 digit in php 
Php :: httpclient add authorization header symphony 
Php :: string concatenation in php 
Php :: wherebetween laravel 
Php :: array_filter in php 
Php :: cases_sensitive 
Php :: Magento 2 create admin module 
Php :: create laravel migration 
Php :: php triple quotes 
Php :: enable phpmailer cpanel 
Php :: laravel call a static function 
Php :: connect to ftp server php 
Php :: php glue strings 
Php :: php if statement with multiple conditions 
Php :: php variable constant 
Php :: check box with value in php 
Php :: join multiple query in laravel 
Php :: Symfony Expected argument of type "string", "null" given 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =