0
我在Apache配置中遇到问题。在我的本地主机上重定向不起作用?
return $this->redirect('ex::dashboard');
执行完美。
但是当我上传代码到服务器。它以空白页面结束。
可能是什么原因?我试图调试..但没有成功。
我有访问服务器和检查大部分PHP参数。
'./configure' '--disable-fileinfo' '--disable-pdo' '--enable-bcmath'
'--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf'
'--enable-libxml' '--enable-mbstring' '--enable-soap' '--enable-sockets'
'--enable-zip' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs'
'--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr'
'--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr'
'--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64'
'--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/'
'--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr'
'--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr'
'--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre'
'--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr'
'--with-zlib' '--with-zlib-dir=/usr'
在有一个
差异本地主机
Server API Apache 2.4 Handler Apache Lounge
专用服务器
Server API CGI/FastCGI
这是否会有所作为是什么?
代码:
https://github.com/nilamdoc/vc.co.uk/blob/master/app/controllers/SessionsController.php#L33
在L33应该重定向到仪表板页面
我也试过
header('Location: https://' . $_SERVER['SERVER_NAME']."/ex/dashboard");
但它并没有重定向