0
votes

I have symfony 1.4 application. On windows AMP all is right. But on Linux Apache2 i have an isseu:

For example, i have deployed application on myhost.

http://myhost/ - works right, but http://myhost/module - doesn't work.

But in i use frontend_dev.php - all is right.

http://myhost/frontend_dev.php/module/ - works.

Cache is clean. And on Windows AMP - all is right.

A haven't any changes of .htaccess and in settins in apache.

Added:

I have the following configuration of .htaccess

Options +FollowSymLinks +ExecCGI

<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
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
2

2 Answers

2
votes

If it is working like url/index.php/module, then you need to enable mod_rewrite for your vhost.

1
votes

As Maerlyn has stated, this problem is usually due to the fact that you do not have mod_rewrite enabled.

The easiest way to enable mod_rewrite, is to add the following lines in your .htaccess file:

Options +FollowSymLinks
RewriteEngine On

That should fix your routing problems.