• I just moved from one domain to another, and this process involves hand editing the MySQL Dump file, and replacing old-domain to new-domain.

    This process seems very delicate, I found so many instances where the old-domain was mentioned in the sql dump, and I was not sure if I should be changing all instances – it is fine to have the old-domain mentioned in the blog post, etc.

    Was just curious why the Famous 5 Minute Install package should make it so cumbersome to move from one folder to another, or to move from one domain to another – I did the same thing with Drupal, that was a breeze! Just change the config PHP file, and restore old DB, and it is done.

    Is this something that is just there for historical reasons? Any chance of this feature being added in some future release – basically, keep all URL/folder definitions in a .php file and not in the database…

Viewing 16 replies (of 16 total)
  • actually, just to interrupt quickly, only the site url and home url are likely required to get the site ‘basic’ functionality back up and running. Doing a big search and replace is a problem, as there are cases where you are changing things like GUIDs for permalinks that should still note the ORIGINAL URL of the post (and NOT the new domain). Of course, if you embed absolute-URLs inside your posts, well, then you are in trouble… that’s why I came up with some quick tags (part of my CG-Inline plugin) that let me refer to other numbered posts on my site just by referencing the post number (thus not embedding a URL at all).

    Yes, it’d be nice if there was a script you could run to update the appropriate URLs in the DB when moved — but I’m also trying to recall if you can log-in to wp-admin for a site post-move, pre-changes… I would think/hope you could, but maybe not. ??

    -d

Viewing 16 replies (of 16 total)
  • The topic ‘Why is URL stored in database?’ is closed to new replies.