Error Accessing Site on Earth Hosting

2

I transferred a web site to a Terra hosting and trying to access it shows the following error:

  

Not Found [CFN # 0005]

I'm talking to the support - horrible, by the way (Neto) - and they say it's my programming that's wrong.

Ask to check the files and .htaccess . I'm using Laravel:

My .htaccess is thus in the root:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

I do this to access the site without using / public in the URL.

And inside the public folder has another .htaccess .

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

This .htaccess is Laravel itself that does.

And still the error persists. I have already checked the permissions and they are all in 755 or RX.

    
asked by anonymous 03.11.2015 / 16:35

1 answer

4

I had problem with hosting earth with this same error and I managed to solve with the following code:

RewriteEngine On

RewriteBase  /novo/

Rewritecond %{REQUEST_URI} !-f
Rewritecond %{REQUEST_URI} !-d
Rewritecond %{REQUEST_URI} !-l

RewriteRule ^([a-z0-9_\-]+)/?$ index.php?page=$1 [NC,L]

RewriteBase / new / is the folder where the site was. If it's in the root, just put: RewriteBase /

Source: link

    
19.05.2016 / 18:24