• When I installed WordPress on my server, I installed it in its own directory. I created a sub-domain on my server so my blog will be reffered to as “blog.myblog.com”. And that’s the URL I’d like to have when someone post a reference to an post on my blog, like this “blog.myblog.com/post_title”.

    Unfortunately, I forgot to change the URL in settings/general and the URL that is now public is “mysite.com/wordpressDirectory”.

    I’m trying to understand the documentation given here, https://codex.www.ads-software.com/Moving_WordPress, but it is not clear to me. I’m not moving the actual location of WordPress, I simply want to change the default URL that is being served publicly.

    I did try to change the URL in settings/general but, obviously, it didn’t work, breaking my site completely.

    Someone can help me out or direct me to the proper instructions to manage this URL change?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Seems as though you ran the install before you set up the sub domain; that is, it was installed from myblog.com/wordpressDirectory.

    If this is the case, and you now have the blog.myblog.com sub domain pointing to the above-mentioned location, then using phpMyAdmin (or whated db tool your host provides) and change the Site URL and Home entries in the _options table to blog.myblog.com.

    Thread Starter TTC1

    (@ttc1)

    No. It was already setup on my server. I actually scraped a previous install that went wrong after an update and a non compatible plugin.
    I simply forgot to change those entries in the “settings/general” section for the WordPress address and Site address before setting up my theme/child theme.
    I had done it this way on my first install, manually entering “blog.mysite.com” as the address for both field.
    I guess it worked because the database wasn’t populated much yet with the theme info and all.

    Anyways, so if I read you correctly, by simply editing Site URL and Home entries in the _options table, all should be fine, right?
    Well, nothing like trying it out and see the result.
    I will be back.
    Thanks for the help.

    Thread Starter TTC1

    (@ttc1)

    That’s what I thought, by doing so, just editing the Site URL and Home entries in the _options table to “blog.mysite.com”, the blog does show up but all the links are broken. I get error 500 on all pages and even part of the theme custom modifications I have done are missing from the front page.

    I guess I have to change every reference in the database from “mysite.com/wordpressDirectory” to “blog.mysite.com”

    But I wonder if I have to change all references in all the tables or just the ones in the _options table. I just want to be sure. I don’ want to have to redo it all a second time.

    You might want to look at using a plugin like :

    https://www.ads-software.com/plugins/velvet-blues-update-urls/

    But make very sure you backup your database first!

    Thread Starter TTC1

    (@ttc1)

    Well, thanks MPyogi for the recommendation but… I just tried it and even though it told me it changed so many occurences, nothing was changed.
    The Site URL and Home entries were still the same and if tried to change one manually, in the settings/general page, it broke the site.

    I read the docs but didn’t see anything special to do before using the plugin.

    Lost here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need precision on modifying site's URL’ is closed to new replies.