Answers.Body: <p>Without having seen your setup, I'd say this is what you need to do:</p>
  
  <ul>
  <li>Move all files and folders (don't forget the hidden ones) to the correct location</li>
  <li>Edit your web/index.php file, to make it look for Craft in the right location (it's looking 2 folders up now, it should only be one folder up.</li>
  <li>Change your site's base url, in your <code>config/general.php</code>, <code>.env</code>, or wherever you've set it.</li>
  <li>Change the paths and urls for the asset folders</li>
  <li>Just to be sure, clear your cache (removing the contents of <code>storage/runtime</code> should do the trick)</li>
  </ul>
  
  <p>Again, depending on your setup there's a thousand things that could prevent this from working, but it should get you going! </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-17T13:50:28.003Z
Answers.Text: Nice! I kept the actual Craft folder where it was, but moved the folder in the public_html up a level. Did the other edits you mentioned. Search was the only thing not working, but i rebuilt the search indexes and it seemed to fix it. Easy peezy!
Answers.UserDisplayName: kingkelly
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-16T08:59:23.403Z
Answers.LastActivityDate: 2019-04-16T08:59:23.403Z
Answers.UserDisplayName: Paul
Body: <p>I have my Craft 3 site all up and running on <code>domain.com/2/</code></p>
  
  <p>I need to move it to just <code>domain.com</code></p>
  
  <p>The Craft files are all one level above <code>public_html</code> like they should be. Not sure what I need to change to bring everything from /2/ to the root level. Would like to avoid installing a fresh copy of Craft if possible.</p>
  
Tags: <staging>
Title: How to move Craft from a subdirectory to public_html
ThreadText: # How to move Craft from a subdirectory to public_html
  
  (Asked by: username_0 on 2019-04-13)
  
  I have my Craft 3 site all up and running on `domain.com/2/`
  
  I need to move it to just `domain.com`
  
  The Craft files are all one level above `public_html` like they should be. Not sure what I need to change to bring everything from /2/ to the root level. Would like to avoid installing a fresh copy of Craft if possible.
  
  **Tags:** staging
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-04-16. Score: 3 | Accepted answer
  
  Without having seen your setup, I'd say this is what you need to do:
  
  * Move all files and folders (don't forget the hidden ones) to the correct location
  * Edit your web/index.php file, to make it look for Craft in the right location (it's looking 2 folders up now, it should only be one folder up.
  * Change your site's base url, in your `config/general.php`, `.env`, or wherever you've set it.
  * Change the paths and urls for the asset folders
  * Just to be sure, clear your cache (removing the contents of `storage/runtime` should do the trick)
  
  Again, depending on your setup there's a thousand things that could prevent this from working, but it should get you going!
  
  > **Comments:**
  > **username_0**: Nice! I kept the actual Craft folder where it was, but moved the folder in the public_html up a level. Did the other edits you mentioned. Search was the only thing not working, but i rebuilt the search indexes and it seemed to fix it. Easy peezy!  
  
  ---
  
  