In my symfony I moved /MySymfonyFolder/web/app.php to root and rename it to index.php e.g. /MySymfonyFolder/index.php, I changed htaccess as below but it causes problem to find css images via cssrewrite as I wrote here.
1) I don't want to move /MySymfonyFolder/web/bundles/, /MySymfonyFolder/web/images/ and /MySymfonyFolder/web/css to /MySymfonyFolder/ too. 2) I don't want to move /app/ and /src/ in upper level outside symfony root.
Assuming I want all /index.php (symfony app.php), /app/ and /src/ in a sub-folder, how the htaccess should be to recognize both /MySymfonyFolder/index.php and /MySymfonyFolder/web/ that it can find images too?
Here is my wrong .htaccess that causes css image problem. please correct it. I searched stackoverflow and found nothing regarding this.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
RewriteRule .? %{ENV:BASE}/index.php [L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/
</IfModule>
</IfModule>