Hello,
I finally got to a stage where I am ready to move my first take with Symfony to a remote host.
I've moved symfony folders to /data and /lib directories in the project, and the setup works locally.
As instructed, here is what I have in the .htaccess in the /web directory:
Options +FollowSymLinks +ExecCGI
RewriteEngine On
# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ frontend_dev.php5 [QSA,L]
# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>SymFony application failed to start properly"
I am using test environment by default and I had to change the file extension to php5 because my host (Pair Netowrks) supports PHP5.1.1 as a CGI.
When I uploaded the project on the remote server, I get a 404 error:
The requested URL /usr/home/MyAccount/public_html/MyProject/web/frontend_dev.php5 was not found on this server.
Any ideas as to why this might happen? Works beautifully on the local machine...