Is this an OK way to change the site url
-
Hi
I have read all the documentation about this but before crashing my site wanted to check this was a way of changing my site URL
The address of a typical page is currently
https://79.170.44.141/theculturalvoyager.com/foodnewz.com/bringing-a-touch-of-chez-nous-to-fulham-reach/
and I want it to display as
https://foodnewz.com/bringing-a-touch-of-chez-nous-to-fulham-reach/The current general settings are
Wordpress Address – https://79.170.44.141/theculturalvoyager.com/foodnewz.comSite Address – https://79.170.44.141/theculturalvoyager.com/foodnewz.com
My solution is to update wp-config.php with these two lines
define(‘WP_HOME’,’https://79.170.44.141/theculturalvoyager.com/foodnewz.com’);
define(‘WP_SITEURL’,’https://foodnewz.com’);My questions are
A will this work
B If it does work the do the two lines of code need to be in a specific place in the comfig file
C If this isn’t the solution then any suggestions welcomeBest regards
Peter M
- The topic ‘Is this an OK way to change the site url’ is closed to new replies.