symfony 1.0:错误 - > “页面未正确重定向”

时间:2012-07-10 07:22:21

标签: php symfony1

我正在学习symfony 1.0,我一直面临着一个问题,那就是页面没有正确重定向

我尽力而为,但每次尝试都失败了。是因为setAuthentication()还是session()?

更新:.htaccess档案:

Options +FollowSymLinks +ExecCGI


#rewritecond %{http_host} ^www.imaginamalta.com/New/ [nc]
#rewriterule ^(.*)$ https://www.imaginamalta.com/New/$1 [r=301,L]

<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
  # comment the following 3 lines to allow periods in routes
  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]

  rewritecond %{http_host} ^http://meh.newsly.svs113/ [nc]
  rewriterule ^(.*)$ http://meh.newsly.svs113/$1 [r=301,L]

</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"

1 个答案:

答案 0 :(得分:0)

您的.htaccess听起来有问题。尝试将AllowOverride设置为ALL