Symfony 1.4 can';如果不使用frontend_dev.php,就无法访问页面

Symfony 1.4 can';如果不使用frontend_dev.php,就无法访问页面,symfony-1.4,Symfony 1.4,我有一个项目,我可以使用如下url访问: 当我尝试在没有frontend_dev.php的情况下访问相同的url时,就像:我可以看到主视图,但里面的链接没有找到错误 这里有什么问题?问题不在于项目配置。我没有apache的mod_重写: 要启用mod_重写,请执行以下操作: a2enmod rewrite 然后 重新加载所有apache配置文件: service apache2 restart 1) 请检查项目rood目录中的.htaccess文件 Options +FollowSymLi

我有一个项目,我可以使用如下url访问:

当我尝试在没有frontend_dev.php的情况下访问相同的url时,就像:我可以看到主视图,但里面的链接没有找到错误


这里有什么问题?

问题不在于项目配置。我没有apache的mod_重写:

要启用mod_重写,请执行以下操作:

a2enmod rewrite
然后

重新加载所有apache配置文件:

service apache2 restart
1) 请检查项目rood目录中的.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} !^favicon\.ico
  RewriteCond %{REQUEST_FILENAME} !-f
  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]

</IfModule>
Options+FollowSymLinks+ExecCGI
重新启动发动机
#如果遇到问题,请取消对以下行的注释
#无法使用脚本名称
#重写基/
#我们跳过了所有的文件
#重写条件%{REQUEST_URI}\+$
#重写条件%{REQUEST\u URI}!\。html$
#重写规则。*-[L]
#我们检查.html版本是否在这里(缓存)
重写规则^$index.html[QSA]
重写规则^([^.]+)$$1.html[QSA]
重写cond%{REQUEST_FILENAME}^法维康\.ico
重写cond%{REQUEST_FILENAME}-F
#不,所以我们重定向到前端web控制器
重写规则^(.*)$index.php[QSA,L]
2) 你能像这样使用url访问吗


http://127.0.0.1:9898/index.php

谢谢您的回复。我已经找到了这个问题的解决办法。我正在使用ubuntu,但我没有apache的mod_重写。