[wp-hackers] Isn't it a problem for WP that it is so strictly attached to a specific domain?

Kenton Jacobsen kenton.jacobsen at gmail.com
Thu Feb 21 23:00:30 UTC 2013


This is an annoyance, particularly if you were, say, trying to do
administration via a secure URL. Also, I tend to backport production data
to a testing instance which normally would make it unusable until adjusted.

I set the following two constants in my wp-config.php files in each
environment so that I don't have to mess around with the DB all the time.

define('WP_HOME', 'http://sub.domain.tld');
define('WP_SITEURL', 'http://sub.domain.tld');

-Kenton


> Porting WordPress from one domain to another is well documented and
> relatively easy - yes, but still requires messing with database (has
> anything changed in this direction? 'cause I keep doing some find and
> replace queries after I move it from one place to another). I just do not
> understand why it is necessary in first place. But obviously I do not see
> whole picture. That's why this question.
>
> Davit Barbakadze
>
>
> On Tue, Feb 19, 2013 at 2:31 AM, Daniel Fenn <danielx386 at gmail.com> wrote:
>
> > Something else to add, some plugins such as wp-united stores the path
> > to the files on the file system )say /home/danielx6/www/forums/) in
> > the database (Such as where the config.php from phpbb is on the
> > server).
> >
> > Regards,
> > Daniel Fenn
> >
>


More information about the wp-hackers mailing list