<p>This is not so much a Craft question as a web server question.</p>

<p>The directory structure of Craft is intended for the web server to have the public (or web in Craft 3) directory configured as the document root.</p>

<p>This is a configuration setting you’ll find in your Apache, Nginx or other web server documentation.</p>

CC BY-SA 3.0
2018-01-20T16:46:55.637Z
Thank you Jeremy, I just had to move my files. Thanks for your help.
Mike 
CC BY-SA 3.0
2018-01-18T13:49:14.383Z
2018-01-18T13:49:14.383Z
Jeremy Gimbel
<p>I'm creating a site that works now at www.mysite.com/public/</p>

<p>I would love to get to drop the /public off the url so it is:</p>

<p>www.mysite.com</p>

<p>Does anyone know how to do this?</p>

<p>Thank you!</p>

<server><nginx><apache>
Making a base url without /public
# Making a base url without /public

(Asked by: username_0 on 2018-01-18)

I'm creating a site that works now at www.mysite.com/public/

I would love to get to drop the /public off the url so it is:

www.mysite.com

Does anyone know how to do this?

Thank you!

**Tags:** server, nginx, apache


---

## 1 answers

### Answer by username_1 on 2018-01-18. Score: 1

This is not so much a Craft question as a web server question.

The directory structure of Craft is intended for the web server to have the public (or web in Craft 3) directory configured as the document root.

This is a configuration setting you’ll find in your Apache, Nginx or other web server documentation.

> **Comments:**
> **username_0**: Thank you Jeremy, I just had to move my files. Thanks for your help.  

---

