2
I transferred a website to network in an Earth hosting and when trying to access it displays 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 is wrong.
They ask to check the files and the .htaccess
.
I’m wearing Laravel:
Man .htaccess
is like this at the root:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
I do this to access the site without using the /public in the URL.
And inside the briefcase public there’s 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>
That one .htaccess
it is Laravel himself who makes.
And still the error persists. I have checked the permissions and they are all 755 or RX.
Did you have any admin on your system that configured permalink usage?
– Marcos Regis
I do not know what is Permalink. It is Wordpress thing ?
– Diego Souza
You are using Wordpress??
– Marcos Regis
I’m not. Laravel.
– Diego Souza
This does not seem to be an error of your Webserver (which to use .htaccess must be Apache) nor of permissions. It seems an error of your system. Apparently he expected to find the destination in the previously configured directory. As the index seems to have been processed, the rewrite rules seem to have worked normally. I suggest starting the investigation by processing the index. Change the index.php file to see if it is actually processing it. A simple
die("AQUI");
that’s enough.– Marcos Regis
So the worst part is that I found out that Earth only has PHP 5.2. And Laravel 5.0 only works from 5.4. It’s horrible. Horrible. And they can’t change the version of my PHP otherwise it changes of all their clients.
– Diego Souza
That doesn’t work at all
– Miguel Batista