How to upload bedrock+sage via FTP?

I have search on this forum and i think theres no clear explanation. I decide to use ftp becuase my client hosting is just shared hosting ( i know this is not deal of bedrock ).
What i did is upload config,app,web folder to subfolder , i.e /staging , and also .env file. I edited the .env according the shared hosting as required.
But when i tried access, error 403 acess forbidden,the error tell there is either no index or the directory is protected.
Actually, my staging folder permission is 775.
Maybe i’m wrong or missing step ?


Your issue is that if your shared hosting doesn’t allow you to set the document root, then Bedrock will not work correctly… The web folder is supposed to be the document root.

You should be able to navigate to /staging/web, if you set up the database correctly. But thats sort of silly

In that case you need to use a .htaccess file in your root with something like this:

#  Change root directory to "staging/web" folder
RewriteEngine on
RewriteCond %{THE_REQUEST} ^GET\ /staging/web/
RewriteRule ^staging/web/(.*) /$1 [L,R=301]
RewriteRule !^staging/web/ staging/web%{REQUEST_URI} [L]

Not 100% sure if this works with 2 levels of folders down though