views:

47

answers:

2

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>
+1  A: 

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

Maerlyn
Thx, but it enabled in .htaccess
Max
You need to enable it in your apache configuration to be able to use it in your .htaccess. Comment the <IfModule> lines in the .htaccess file, and if you get an internal server error, mod_rewrite is disabled.
Maerlyn
+1  A: 

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.

Jon
He needs an AllowOverride directive, but I'm not sure, which. I usually end up using `AllowOverride All`.
Maerlyn