I have trouble with .htaccess. I've got a website within the primary server folder along with a domain leading into it (adriatic.pl). No i've designed a latest version from the website and set it in "adriatic_new" folder. After i run adriatic.pl/adriatic_new/public everythig works fine, however when i connect the domain (adriatic.pl) straight to the "adriatic_new" folder I recieve "500 Internal Server Error".

I discovered it might be .htaccess problem bo how you can edit it to really make it work?

It appears such as this:

SetEnv APPLICATION_ENV development
Allow from all

DirectoryIndex main.php

RewriteEngine On

RewriteCond %{DOCUMENT_ROOT}/static/index.html -f
RewriteRule ^/*$ static/index.html [L]

RewriteCond %{DOCUMENT_ROOT}/static/%{REQUEST_URI}.html -f
RewriteRule .* static/%{REQUEST_URI}.html [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.*)/+$
RewriteRule ^.*$ %1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ main.php [NC,L]

php_flag magic_quotes_qpc off
php_flag register_globals off

Ok men (and girls?) - issue is solved.

All I needed to do ended up being to add "RewriteBase /" during my .htaccess. So simple yet so confusing and annoying. Thanks.