Support » Networking WordPress » URL change

  • Hi

    I need your help to try to correct what I think may be “installation bad decisions”.

    I’m installing a second site in WP (multisite).

    The domain of this second site is http://www.imagemlusa.com but the url of the contents are in the format “http://foto.rituais.com/wp/imagemlusa/something” (same issue for the first instalation).

    My question is: What is the simplest way to get the content url to be in the “http://www.imagemlusa.com/something” format?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • You will need to do is change your Settings > General to reflect your sites URL.
    https://codex.wordpress.org/Settings_General_Screen

    This will fix your menu and dynamic links. If there are any hardcoded in your content you may have to do a simple find and replace. But change the settings first and see what happens.

    Thank you Kim for your answer. As simple as that… 🙂

    The problem is that in the General Settings screen, I don’t have the “WordPress Address (URL)” and “Site Address (URL)” fields, as well as “Membership” and “New User Default Role”. Probably because I installed WP from the hoster service and may have a modified version. I’ll have to take a look or talk to them.

    Do you have admin permissions? Very strange. Yes, something is set and turning off these options for you. I would contact the host as you said.

    Yes, I have admin permissions.

    I already opened a ticket and then I’ll tell you what the problem was.

    Hi Kim, I’m back!

    My hoster says, fields “WordPress Address (URL)” and “Site Address (URL)” are not visible on General Settings screen, because I have a multisite installation.
    That is, apparently these fields must be seted up manually. Can you confirm this information?

    They suggested that I read:
    https://premium.wpmudev.org/forums/topic/how-to-change-url-for-wp-multi-site
    https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/
    http://www.wpbeginner.com/wp-tutorials/how-to-install-and-setup-wordpress-multisite-network/

    I did as described! In phpMyAdmin:
    1. “wp_options” table: I changed “siteurl” and “home” to the new URL
    2. “wp_sitemeta” table: I changed “siteurl” to the new URL and I couldn´t do the sabe in “home” because my table does not have this field
    3. “wp_site” table: I changed the only table field to the new URL
    4. “wp_blogs” table: I changed “option_value”
    5. Also, they talked about tables “wp_ {blog_id} _options” but I couldn’t find others, besides “wp_blogs”
    6. wp-config.php file: I put the newdomain.com in “domain_current_site”

    After this, my sites stopped working and I had to reset the changes I made.

    Since the physical location of the sites does not change (I’m not moving the instalation path), should I always change the “siteurl” and “home” fields?
    I ask this because I read somewhere that the “siteurl” field is for the path to the physical installation. But I also tried not updating this one and it also did not work…

    Can you help me understand what I have to do?

    oh… it’s a multisite. I apologize, I missed that part. Let me see if I can get someone who knows multisites to look at your question.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    There are plugins for this:

    https://wordpress.org/plugins/wordpress-mu-domain-mapping/
    https://github.com/humanmade/Mercator

    But if you want to do it manually, it’s not terribly hard:

    1. Go to Network Admin -> Sites
    2. Edit the site in question
    3. Change the URL to the mapped domain, check the ‘change home and site URL’ box, and click update
    4. Add define( 'COOKIE_DOMAIN', $_SERVER[ 'HTTP_HOST' ] ); to your wp-config file
    5. Update the URLs via your search/replace editor of choice

    For the search/replace I recommend https://github.com/interconnectit/Search-Replace-DB or using WP-CLI.

    I have read all your suggestions but any alternative to solve this problem, begins to surpass my poor knowledge. Also, I’m starting to think that the multisite setup might not have been the best idea.

    So, I may be facing a new installation that will correct the way I originally installed WP, or perhaps I seek technical support to fix this problem.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘URL change’ is closed to new replies.