index.php will not redirect to new directory due to server error

sounay

Registered
May 9, 2013
3
0
1
cPanel Access Level
Root Administrator
Hi all,

I'm experiencing server error with my index.php. It will not respond.
The is the result when access domain.com
dddd.jpg

The problem is that the index.php will not automatically redirect to domain.com/home
What is the issue behind this? What kind of mod or features of apache is missing?

please kindly help me, appreciated.

The index.php script is as follows:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- <meta http-equiv="Refresh" content="0; url=http://www.domain.com/home">-->
<title>title here</title>
<link rel="icon" href="http://domain.com/favicon.ico">
<link rel="image_src" href="http://domain.com/vh_logo.jpg" />
</head>
<body>
<?php
$host  = $_SERVER['HTTP_HOST'];
$uri   = "/home";
$extra = '';
header("Location: http://$host$uri/$extra");
exit;
?>
</body>
</html>
regards,
Sounay
 
Last edited by a moderator:

sounay

Registered
May 9, 2013
3
0
1
cPanel Access Level
Root Administrator
Check what is the error message in /usr/local/apache/logs/error_log
Hi, this what I found in error_log file
[Thu May 09 19:25:16 2013] [error] an unknown filter was not added: DEFLATE
[Thu May 09 19:25:16 2013] [error] an unknown filter was not added: DEFLATE
[Thu May 09 19:25:16 2013] [error] an unknown filter was not added: DEFLATE
[Thu May 09 19:25:16 2013] [error] an unknown filter was not added: DEFLATE
[Thu May 09 19:25:16 2013] [error] an unknown filter was not added: DEFLATE
[Thu May 09 19:25:28 2013] [error] [client 66.249.73.176] File does not exist: /home/vientian/public_html/components
[Thu May 09 19:25:28 2013] [error] [client 66.249.73.176] File does not exist: /home/vientian/public_html/404.shtml
[Thu May 09 19:25:36 2013] [error] an unknown filter was not added: DEFLATE
regards,