Strona 1 z 1

Błąd 404 w lycos.

: 13 kwietnia 2006, 16:27
autor: krzysiu818
Witajcie
Mam pytanie: Wchodzę na members.lycos.co.uk/moja nazwa/phpbb2
i albo się wyślietla wp.szukaj albo błąd 404 (szukałem dokładnie na forum).

: 13 kwietnia 2006, 16:32
autor: daroPL
To chyba złe szukałeś:
http://phpbb.pl/forum/viewtopic.php?t=2548
lub
Otwórz includes/functions.php
Znajdź

Kod: Zaznacz cały

function redirect($url) 
{ 
   global $db, $board_config; 

   if (!empty($db)) 
   { 
      $db->sql_close(); 
   } 

   $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; 
   $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); 
   $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; 
   $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); 
   $script_name = ($script_name == '') ? $script_name : '/' . $script_name; 
   $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url)); 

   // Redirect via an HTML form for PITA webservers 
   if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) 
   { 
      header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url); 
      echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click HERE to be redirected</div></body></html>'; 
      exit; 
   } 

   // Behave as per HTTP/1.1 spec for others 
   header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url); 
   exit; 
}



i zamień na

Kod: Zaznacz cały

function redirect($url) 
{ 
   global $db, $board_config; 
    
           if (!empty($db)) 
           { 
                   $db->sql_close(); 
           } 

   $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; 
   $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); 
   $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; 
   $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); 
   $script_name = ($script_name == '') ? $script_name : '/' . $script_name; 
   //$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url)); 

   // Redirect via an HTML form for PITA webservers 
   if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) 
   { 
      header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url); 
      echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click HERE to be redirected</div></body></html>'; 
      exit; 
   } 

   // Behave as per HTTP/1.1 spec for others 
   //header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url); 
   header('Location: ' . $url); 
   exit; 
}
jeżeli to nie działa to w znaczy, że w złe miejsce wsadziłeś phpBB

: 13 kwietnia 2006, 16:41
autor: krzysiu818
nie działa co teraz zrobić ?

: 13 kwietnia 2006, 16:46
autor: daroPL
zobacz na FTP w jakim katalogu masz dokładnie phpBB, jeżeli jest gdzieś tam plik index.html to go usuń.

: 13 kwietnia 2006, 17:07
autor: krzysiu818
Mam FTP a phpBB mam normlanie na serwerze i tam obok phpBB jest index.html to go usunąć ?

: 13 kwietnia 2006, 17:11
autor: daroPL
usuń ten index.html i po adresie np. pl dajesz /nazwe_katalogu_z_phpBB.