Domanda

Problema: I miei articoli hanno gli URL giusti: per esempio, newsite.com/article. Tuttavia, facendo clic su un articolo che ricevo un articolo vuoto. Posso vedere la mia barra laterale.

ho spostato la mia installazione di Joomla in una cartella diversa in mio assistente. Voglio cambiare il mio dominio da OldSite.com a NewSite.com.

Non sono sicuro se ho bisogno di cambiare il database o non troppo.

La mia recente configuration.php in NewSite.com che è stato spostato da OldSite.com.

<?php
class JConfig {
var $offline = '1';
var $editor = 'jce';
var $list_limit = '20';
var $helpurl = 'http://help.joomla.org';
var $debug = '0';
var $debug_lang = '0';
var $sef = '1';
var $sef_rewrite = '1';
var $sef_suffix = '0';
var $feed_limit = '10';
var $secret = '----------------';
var $gzip = '0';
var $error_reporting = '7';
var $xmlrpc_server = '0';
var $log_path = '/home/masi/public_html/NewSite/logs';        // I added this
var $tmp_path = '/home/masi/public_html/NewSite/tmp';         // I added this
var $live_site = 'http://www.NewSite.com/';                   // I added this
var $offset = '0';
var $caching = '0';
var $cachetime = '15';
var $cache_handler = 'file';
var $memcache_settings = array();
var $ftp_enable = '0';
var $ftp_host = '127.0.0.1';
var $ftp_port = '21';
var $ftp_user = 'admin';
var $ftp_pass = '------------';              // hidden now for security
var $ftp_root = '';
var $dbtype = 'mysql';
var $host = 'localhost';
var $user = 'masi_jml02';                   
var $db = 'masi_jml02';                      
var $dbprefix = '';
var $mailer = 'mail';
var $mailfrom = 'admin@masi.com';          
var $fromname = '';
var $sendmail = '/usr/sbin/sendmail';
var $smtpauth = '1';
var $smtpuser = '';
var $smtppass = '';
var $smtphost = 'localhost';
var $MetaAuthor = '0';
var $MetaTitle = '1';
var $lifetime = '15';
var $session_handler = 'database';
var $password = '--------------';                   // hidden now for security
var $sitename = '--------------';                   // hidden now for security
var $MetaDesc = '';
var $MetaKeys = '';
var $offline_message = 'This site is down for maintenance. Please check back again soon.';
}
?>

ho messo i commenti al codice di cui sopra per indica le righe che ho cambiato dopo ho spostato la cartella di installazione.

Il mio index.php in public_html / NewSite / templates / a tema /

<?php

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl;?>/templates/system/css/general.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl;?>/templates/<?php echo $this->template ?>/css/customize.css" type="text/css" />


<script type="text/javascript" src="<?php echo $this->baseurl;?>/templates/<?php echo $this->template ?>/js/global.js"></script>
<?php if($this->countModules('left') <= 0 ) : ?>

<?php endif; ?>
<?php $div_wrap = ($this->countModules('left')) ? 'modulewrap' : 'modulewrap_wide'; ?>
<?php $div_right = ($this->countModules('user4')) ? 'right' : 'right_wide'; ?>
<?php $div_left = ($this->countModules('right')) ? 'left' : 'left_wide'; ?>
</head><body>
<div id="outerwrap">

  <div id="header">

    <?php if($this->countModules('user1')) : ?>
    <jdoc:include type="modules" name="user1" style="xhtml" />
    <?php else: ?>
    <h1><a href="<?php echo $mainframe->getCfg('live_site');?>" title="<?php echo $mainframe->getCfg('sitename');?>"><?php echo $mainframe->getCfg('sitename');?></a></h1>
    <?php endif; ?>

  </div>

<!-- 3bar column -->
      <?php if ($this->countModules('top')): ?>
      <div id="top">
      <jdoc:include type="modules" name="top" style="xhtml" />
      </div>
      <?php endif; ?>
<!-- End 3bar column -->
  <div class="clear"></div>
  <div id="wrapper">


  <!-- Start leftcol -->
    <?php if($this->countModules('left')) : ?>
    <div id="leftcol">
      <jdoc:include type="modules" name="left" style="xhtml" />
    </div>
    <!-- END leftcol -->
    <?php endif; ?>

<!-- Right column -->
      <?php if ($this->countModules('user3')): ?>
      <div id="user3">
      <jdoc:include type="modules" name="user3" style="xhtml" />
      </div>
      <?php endif; ?>
<!-- End Right column -->

    <div id="mainbody">
      <div class="inside">
        <jdoc:include type="message" />
        <jdoc:include type="component" />
</div>
      <!-- END INSIDE -->
    </div>
    <!-- END MAINBODY -->


      <div class="clear"></div>
    </div>
    <!--END WRAP-->
  </div>
  <!--END WRAPPER-->
  <div class="clear"></div>
  <div id="bottombar"></div>
</div>
<!--END OUTERWRAP-->

<div class="designer">
<jdoc:include type="modules" name="footer" style="raw" /></div>


</body>
</html>
È stato utile?

Soluzione 2

Il mio sito è stato configurato per utilizzare mod_rewrite, ma non c'era nessun file .htaccess disponibili.

ho disabilitato il mod_rewrite, ei collegamenti ora lavoro.

Altri suggerimenti

ok ...

  • è stato spostato l'intero impianto in una nuova directory? subdirectory?
  • che cosa si intende per 'Non aprire correttamente'? si prega di fornire messaggi di errore o un link!
  • si aggiustò il configuration.php !? puoi pubblicare qui (prendere le password out)
  • sicuramente funziona senza fare nulla nel database.
  • sei sicuro i cambiamenti nel configuration.php hanno avuto effetto. ad esempio file non era scrivibile o modificato non in linea e si è dimenticato di caricarlo ...
  • hai intrometta con l'index.php del template? forse l'url è hard-coded da qualche parte?
  • c'è un altro componente / modulo / plugin che ha bisogno di readjustement / riconfigurazione?

Se youк nuovo sito si trova nella sottocartella sotto root del server web, basta controllare direttiva RewriteBase nel file .htaccess. Aggiornare RewriteBase / a RewriteBase /subfolder/ Come posso vedere è altamente possibile che il principale del sito è la directory public_html mentre il sito vero e proprio si trova nella directory NewSite. Quindi provare a sostituire RewriteBase / a RewriteBase /NewSite/ (slash è obbligatorio).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top