I have a site (php) which i uploaded to a host and it is unreachable, giving the 500 internal server error message. I have the same site with the same .htaccess on localhost, and also on 2 other hosts, those are working perfectly.
The server's error message is the following: AH01276: Cannot serve directory /home/user/public_html/
This is my .htaccess in the public_html folder (as i said it is the same on 2 other hosts with no problem)
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /public_html/
RewriteRule ^$ /public/index.php [QSA,L]
RewriteRule (.*) /public/$1 [QSA,L]
</IfModule>
If i comment out the
RewriteRule (.*) /public/$1 [QSA,L]line the site loads to the login page, but after i login, it gives 404 error.
The site is php, uses MVC model, redirecting every request to public/index.php
Does anyone have an idea what could go wrong on this host ?
I also have an another .htaccess inside the document_root/public/ folder that is also the same on every host:
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]