Hi,

I have 2 applications: app1 & app2, which directory web files are both
in /web.

Here's my problem:while rewrite works perfectly for app1, rewrite
works partially for app2: css, img & js are not loaded.

When we both exchange app* places in .htaccess, app2 works perfectly,
then app1 works partially: no load of css img & js.

Here's my .htaccess, did I forgot something? I am on this since 2
days... :(

Cheers

Options +FollowSymLinks +ExecCGI
ExpiresActive On

# 1 month
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
#  Header set Cache-Control "max-age=2592000, public"
  ExpiresDefault "access plus 1 month"
</FilesMatch>

# 1 month
<FilesMatch "\.(xml|txt|css|js)$">
  Header set Cache-Control "max-age=2592000, proxy-revalidate"
</FilesMatch>

# 2 month favicon
<FilesMatch "\.(favicon\.png)$">
  Header set Cache-Control "max-age=2592000, proxy-revalidate"
</FilesMatch>

# 1 MIN
<FilesMatch "\.(html|htm|php)$">
 Header set Cache-Control "max-age=60, private, proxy-revalidate"
</FilesMatch>

<IfModule mod_rewrite.c>
  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  RewriteBase /

  # 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
  RewriteCond %{HTTP_HOST} ^hostapp1 [NC]
  RewriteRule ^(.*)$ index.php [QSA,L]

  RewriteCond %{HTTP_HOST} ^hostapp2 [NC]
  RewriteRule ^(.*)$ frontend.php [QSA,L]

</IfModule>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to