Zrobiłem tak jak mi napisałeś: Otrzymuję komunikat:
404
Not Found
The resource requested could not be found on this server!
UPDATE:Zmieniłem public_html na web - nadal było to samo.
Zmieniłem web na public_html - otrzymałem:
Parse error: syntax error, unexpected '[', expecting ')' in /home/kosmos/domains/nazwadomeny.hekko24.pl/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 80
Po kolejnym odświeżeniu (wywołaniu adresu w przeglądarce), otrzymałem:
Oops! An Error Occurred
The server returned a "404 Not Found".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
Znalazłem w sieci (po powyższym komunikacie) cos takiego:
http://stackoverflow.com/questions/1783214...a-404-not-foundNapisano tam jak przejść z trybu produkcyjnego na deweloperski i przytoczono kawałek .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app_dev.php [QSA,L]
</IfModule>
Sugerując się tym postem, ja w swoim powinienem mieć taki zapis?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ [color="#FF0000"]app.php[/color] [QSA,L]
</IfModule>
Póki co na serwerze mam taki zapis:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
RewriteRule .? %{ENV:BASE}/app.php [L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /app.php/
</IfModule>
</IfModule>