Changing The Site URL


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

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

2) If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

Add these two lines to the file, immediately after the initial „<?php” line.

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

From Codex.

Paweł Dobrzański

Start-up's fan, technological conferences member, social media enthusiast and low-cost trips traveler.

You may also like

LEAVE A COMMENT

Cześć!

Witaj na moim blogu! Znajdziesz tu proces budowania mojej aplikacji EventSearch za pomocą jhipstera. Podzielę się z Tobą niuansami dot. zakładania i prowadzenia firmy. Mam również nadzieję, że pomogę Ci zaoszczędzić trochę pieniędzy. Zapraszam!

Najpopularniejsze posty

Dzięki, że wpadłeś!

Paweł Dobrzański

Paweł Dobrzański

Start-up's fan, technological conferences member, social media enthusiast and low-cost trips traveler.