Uploading Application Laravel4 for shared hosting

3

My access to this hosting can only be from the folder public_html forward, I can not access a level back.

I put all project files within public_html and entered a htaccess with

 <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^public
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

and it did not work, it returns me a blank page.

What's wrong with it?

    
asked by anonymous 02.05.2014 / 18:54

1 answer

2

The only way I found the shared one I use is:

SetEnv APPLICATION_ENV production
<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteCond %{REQUEST_URI} !-f
    RewriteRule (.*) public/$1 [L]

    RewriteCond %{REQUEST_URI} !-d
    RewriteRule (.*) public/$1 [L]
</IfModule>

This .htaccess issue varies from the apache version, and the way it compiled, this same code does not work on a friend's host.

It might work for you. But I can not be sure.

    
03.05.2014 / 15:29