Dzięki Panowie za pomoc. Jeżeli chodzi o zmianę i dopisanie w .htaccess reguły aby index pchał do głównej, wszystkie główne zakładki menu przekierowywały do głównej. Kod jaki dodałem:
Kod PHP:
RewriteRule ^index.(php|html|htm)$ / [R=301,L]
RewriteRule ^([a-z0-9-_]+)/index.(php|html|htm)$ /$1/ [R=301,L]
Jeżeli chodzi o index.php z templates to przedstawia się następująco:
Kod PHP:
<?php
/*================================================================================*\
|| # Copyright (C) 2012 Joomlage.com Nexus Framework. All Rights Reserved. ||
|| # license - PHP files are licensed under GNU/GPL V2 ||
|| # license - CSS - JS files are Copyrighted material ||
|| # Website: http://www.joomlage.com ||
\*================================================================================*/
defined('_JEXEC') or die;
// JPlugin::loadLanguage( 'tpl_SG1' );
JHtml::_('behavior.framework', true);
define( 'nexus', dirname(__FILE__) );
require( "php/config.php");
require( "php/variables.php");
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<?php include ( "php/styles.php");?>
<?php echo ($head_custom_code); ?>
</head>
<body>
<div class="se-pre-con"></div>
<a href="#" class="scrollup">Scroll</a>
<div id="#spacer" class="spacer"></div>
<div id="container_header" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/header.php"); ?>
</div></div>
<div id="container_logo_menu_mobile" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/responsive_head.php"); ?>
</div></div>
<div id="#spacer" class="spacer-2"></div>
<?php if ($this->countModules( 'jumbotron' )) : ?>
<div id="container_jumbotron_bg" style="background-position: 50% 0%" data-stellar-background-ratio="0.5">
<div id="container_jumbotron" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/jumbotron.php"); ?>
</div></div></div>
<?php endif; ?>
<?php if ($this->countModules( 'showcase' )) : ?>
<div id="container_slideshow" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/slideshow.php"); ?>
</div></div>
<?php endif; ?>
<div id="content"></div>
<?php if ($this->countModules('top-1a') || $this->countModules('top-1b') || $this->countModules('top-1c') || $this->countModules('top-1d') || $this->countModules('top-1e') || $this->countModules('top-1f') || $this->countModules('top-2a') || $this->countModules('top-2b') || $this->countModules('top-2c') || $this->countModules('top-2d') || $this->countModules('top-2e') || $this->countModules('top-2f')) : ?>
<div id="container_top_modules_bg" class="jl_container" style="background-position: 50% 0%" data-stellar-background-ratio="0.5">
<div id="container_top_modules" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/top_modules.php"); ?>
</div></div></div>
<?php endif; ?>
<div id="container_maincontent_bg" style="background-position: 50% 0%" data-stellar-background-ratio="0.5">
<div id="container_main" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/main.php"); ?>
</div></div>
</div>
<?php if ($this->countModules('bottom-1a') || $this->countModules('bottom-1b') || $this->countModules('bottom-1c') || $this->countModules('bottom-1d') || $this->countModules('bottom-1e') || $this->countModules('bottom-1f') || $this->countModules('bottom-2a') || $this->countModules('bottom-2b') || $this->countModules('bottom-2c') || $this->countModules('bottom-2d') || $this->countModules('bottom-2e') || $this->countModules('bottom-2f')) : ?>
<div id="container_bottom_modules_bg" style="background-position: 50% 0%" data-stellar-background-ratio="0.5">
<div id="container_bottom_modules" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/bottom_modules.php"); ?>
</div></div></div>
<?php endif; ?>
<?php if ($this->countModules('base-1a') || $this->countModules('base-1b') || $this->countModules('base-1c') || $this->countModules('base-1d') || $this->countModules('base-1e') || $this->countModules('base-1f') || $this->countModules('base-2a') || $this->countModules('base-2b') || $this->countModules('base-2c') || $this->countModules('base-2d') || $this->countModules('base-2e') || $this->countModules('base-2f') || $this->countModules( 'footer-1' ) || $this->countModules( 'footer-2' )) : ?>
<div id="container_base_modules_bg" style="background-position: 0% 0%" data-stellar-background-ratio="0.5">
<div id="container_base" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/base.php"); ?>
</div></div></div>
<?php endif; ?>
<div id="container_copyright_footermenu" class="jl_container"><div class="wrapper960">
<?php require( "php/layouts/copyright-footermenu.php"); ?>
</div></div></div>
<?php echo ($body_custom_code); ?>
<?php // Load and Initialise Scripts
include ( "php/scripts.php");
?>
</body>
</html>
Dla mnie problemem jest wykrzaczanie strony Chciałbym, żeby logo przekierowywało do głównej, więc pewnie najlepiej będzie to zrobić pierwszym opisanym przez Ciebie sposobem.