Salve ho un problema con un sottodominio, questo è quello che ho fatto
1 - Ho aperto uno spazio web con altervista.
2 - Ho installato joomla nella dir principale.
3 - Ho installato un forum con smf nella cartella forum.
4 - Ho comprato un dominio con altervista (opzione2) e ho impostato il redirect con cloak attivo al sito (tutto ok)
5 - Ho trasferito il file index.php della dir principale e ho creato un sottodominio alla cartella forum e ho impostato il redirect anche a questo. Funziona alla perfezione si accedendo con il nuovo dominio che con quello di AV
6 - Ho preso il codice del vecchio index.php e l'ho incollato sotto al codice del nuovo index.php, creato dal sottodominio il risultato è errore 404
La pagina http://www.xboxwarriorsclan.altervis...not_found.html non è presente, questo può dipendere dal fatto che:.... ecc...
incollo il codice del nuovo php con la prima parte del vecchio uniti
come risolvo?Codice:<?php /* AVSBDMNG */ include "/membri/.dummy/subdomains.php"; switch(@GetSubdomain("xboxwarriorsclan", $HTTP_SERVER_VARS['HTTP_HOST'])) { case "forum": Header("Location: /forum/"); break; default: Header("Location: /not_found.html"); } ?> <?php /** * @version $Id: index.php 6022 2006-12-18 22:30:07Z friesengeist $ * @package Joomla * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // Set flag that this is a parent file define( '_VALID_MOS', 1 ); // checks for configuration file, if none found loads installation page if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) { $self = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/'; header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "installation/index.php" ); exit(); }

LinkBack URL
About LinkBacks
