Hi, I’m trying to deploy my site to Media Temple using Bedrock and Capistrano, but I don’t know how to change my document root to point to html/web
instead of just html.
My cap production deploy
completes, and everything runs, but when I go to davidham.com (my URL) in the browser, I get a 403 forbidden error. When I try to access /wp/wp-admin/
I get an unstyled version of WordPress’s 404 page. When I try /web/wp/wp-login.php
, I get an unstyled version of the login page.
I have my MediaTemple html
folder (the document root, not changeable as far as I can tell) symlinked to current.
I tried this .htaccess
file both in current
and in current/web
(linked with capistrano from `shared/web):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /web/$1 [L]
</IfModule>
# END WordPress
Has anyone else managed this? I think I’m pretty close with my .htaccess
file but I can’t get it to work. Very grateful for any assistance!