The first important thing is I'm new user of Symfony 2.1, so some sort of this I do not now yet. So this post could be good example to others users of Symfony 2.
Back to main question. I'm trying to export my Symfony project (whole project) to 1and1
web server. I have made some research how to do it, but all methods fail in my case.
What I've done:
- I moved all project files to the server.
- Prepared a subdomain (adress), point on
/web
folder and confirure.htaccess
file from tutorial of 1and1 mod_rewrite issues and symfony2 rewrite rules .htaccess app.php.
This is my .htaccess
file in /web
folder
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
Options -MultiViews
# Explicitly disable rewriting for front controllers
RewriteRule ^app_dev.php - [L]
RewriteRule ^app.php - [L]
RewriteCond %{REQUEST_FILENAME} !-f
# Change below before deploying to production
RewriteRule ^(.*)$ app.php [QSA,L]
#RewriteRule ^(.*)$ app_dev.php [QSA,L]
</IfModule>
I thought it should worked, but no still shows Internal Server Error 500
Notice:
While I'm reading this post I found this article of htaccess in Symfony but it's not mentioning that .htaccess file should be moved or just copy to root.
Please, explain step by step what to do, what steps are very important to do it properly, or where I did something wrong?