Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Switching default website

Switching default website

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 745 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rothkuoR
    rothkuoR
    rothkuo
    wrote on last edited by
    #1

    Hello there,
    I started mocking up the draft of a new site at domain.com/new, it is now complete and I'd like for that to be domain.com, and I'd like to move whatever is at domain.com to be the sub (domain.com/sub). I actually don't even need the sub but it's a security step. Is there a way to switch over?
    Thank you!

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      backup your databases and files of both sites, using a plugin like:
      https://updraftplus.com/

      so i think you have your "domain.com/new" website on your ftp server under the folder "new"

      and your site of www.domain.com you have in your "/" ftp folder.

      so i think you need to create a new folder in your ftp called "sub", then move your site in "/" to "/sub/" (but dont move the folder "new" into "sub")

      then using a FTP client like https://filezilla-project.org/ move the files inside "/new/" to "/"

      then login to your wordpress site at www.domain.com/wp-admin/ (which was previously at "/new/")

      install the plugin
      https://wordpress.org/plugins/better-search-replace/

      use it to replace any database URL occurences of www.domain.com/new/ with www.domain.com

      maybe that works!

      1 Reply Last reply
      0
      • rothkuoR
        rothkuoR
        rothkuo
        wrote on last edited by rothkuo
        #3

        Thanks @arminunruh ! I'm in my cPanel File Manager right now but I don't see a /new anywhere. I don't see it in home director or public_html. Do you know where this would live?

        1 Reply Last reply
        0
        • rothkuoR
          rothkuoR
          rothkuo
          wrote on last edited by
          #4

          Update @arminunruh I actually found this, and this worked for me!
          https://www.forge12.com/en/blog/change-the-primary-block-in-wordpress-multisite/?unapproved=3304&moderation-hash=87ad761a398fcc0027c32c6867d303c9#comment-3304

          The only thing is, the URL is still rothkuo.com/two instead of just / and I'm unable to change it in My Sites > Network Admin > Edit Site > Settings. And the permalinks still go to rothkuo.com/two even though initially when you go to rothkuo.com it all works. I don't mind it too much but if you have a solve for that, I'd love to try it.

          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by arminunruh
            #5

            I'm unable to change it in My Sites > Network Admin > Edit Site > Settings

            you're not supposed to change it there,
            you need to use the plugin as i said:

            install the plugin
            https://wordpress.org/plugins/better-search-replace/

            use it to replace any database URL occurences of www.domain.com/two/ with www.domain.com

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Online Users
            J
            j.varela
            A
            alasdair17
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search