# Bedrock redirecting to servve

**URL:** https://discourse.roots.io/t/bedrock-redirecting-to-servve/1365
**Category:** uncategorized
**Created:** 2014-03-09T22:55:45Z
**Posts:** 4

## Post 1 by @lewix66 — 2014-03-09T22:55:45Z

So i seen the composer screencast. understand for now. trying to install bedrock.  
clone it from git and change the .env file. database is connected but when i go to /web/wp/wp-admin i am redirected to [example.com](http://example.com).

now i bought the capistrano screencast,

DB\_NAME=topdoctor\_dit2  
DB\_USER=root  
DB\_PASSWORD=root  
DB\_HOST=localhost

WP\_ENV=development  
WP\_HOME=http://localhost/public\_html/bedrock  
WP\_SITEURL=http://localhost/public\_html/bedrock/wp

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost  
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7

---

## Post 2 by @swalkinshaw — 2014-03-09T23:21:50Z

My first guess is your Apache vhost configuration is the problem. Can you paste it?

Your `DocumentRoot` needs to be something like `/path/to/bedrock/web` with the new web folder in Bedrock.

You can’t just dump a Bedrock project into a subdir anymore.

---

## Post 3 by @lewix66 — 2014-03-09T23:24:39Z

so i make it run when i change the path to:

WP\_HOME=http://localhost/public\_html/bedrock/web/wp  
WP\_SITEURL=http://localhost/public\_html/bedrock/web

its good ? or i am still doing something wrong?

---

## Post 4 by @swalkinshaw — 2014-03-09T23:36:53Z

No, that’s in your `.env` file and it was correct before.

It looks like you’re just using the default Apache `public_html` virtual host. You’ll need to create your own vhost with its document root set to web folder of your Bedrock project (path, not URL). You should read up on Apache2 virtual hosts and how to create/configure them. There’s lot of resources out there (especially related to WordPress).
