apache - Redirect does not work? -
i have problem in apache config. on localhost
return $this->redirect('ex::dashboard');
executes perfectly.
but when upload code server. terminates blank page.
what reason? tried debug.. no success.
i have access of server , checked of php parameters.
'./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'
there 1 difference in
localhost
server api apache 2.4 handler apache lounge
dedicated server
server api cgi/fastcgi
will make difference?
the code:
https://github.com/nilamdoc/vc.co.uk/blob/master/app/controllers/sessionscontroller.php#l33
at l33 should redirect dashboard page
i tried
header('location: https://' . $_server['server_name']."/ex/dashboard");
but did not redirect
given following:
i tried
header('location: https://' . $_server['server_name']."/ex/dashboard");
but did not redirect
...this not lithium question.
are sure it's apache? this:
server api cgi/fastcgi
...does not seem indicate.
Comments
Post a Comment