Splash Page Problem - Joomla! Forum - community, help and support
ok got site want use spash page on.
the problem if name splash page index.html , create button links index.php every time click on index.php link reverts splash page.
i have other links on site go other areas of site seems anytime call index.php takes me index.html page. if click home when in site same thing , take me spash page.
any way fix this?
im guessing has either .htaccess file or index.php file
here code both
.htaccess code
index.php code
thanks in advance
worsin
the problem if name splash page index.html , create button links index.php every time click on index.php link reverts splash page.
i have other links on site go other areas of site seems anytime call index.php takes me index.html page. if click home when in site same thing , take me spash page.
any way fix this?
im guessing has either .htaccess file or index.php file
here code both
.htaccess code
code: select all
rewritecond %{http_host} ^teenhelpcenter.us$ [nc]
rewriterule (.*) http://www.teenhelpcenter.us/$1 [r=301,l]
##
# @version $id: htaccess.txt 4085 2006-06-21 16:03:54z stingrey $
# @package joomla
# @copyright copyright (c) 2005 open source matters. rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html gnu/gpl
# joomla! free software
##
#####################################################
# read if choose use file
#
# line below section: 'options followsymlinks' may cause problems
# server configurations. required use of mod_rewrite, may already
# set server administrator in way dissallows changing in
# .htaccess file. if using causes server error out, comment out (add # to
# beginning of line), reload site in browser , test sef url's. if work,
# has been set server administrator , not need set here.
#
# use 1 of 2 sef sections follow. lines can uncommented
# (and used) have 1 #. lines 2 #'s should not uncommented
# in section don't use, lines should start #
#
# standard sef, use standard sef section. can comment out
# of rewritecond lines , reduce server's load if you
# don't have directories in root named 'component' or 'content'
#
# if using 3rd party sef or core sef solution
# uncomment of lines in '3rd party or core sef' section
#
#####################################################
##### solving problems component url's don't work #####
# special note smf users when smf integrated , bridged
# or situation component's url's aren't working
#
# in both 'standard sef', , '3rd party or core sef' sections line:
# rewritecond %{request_uri} ^(/component/option,com) [nc,or] ##optional - see notes##
# may need uncommented. if running joomla/mambo from
# subdirectory name of subdirectory need inserted this
# line. example, if joomla/mambo in subdirectory called '/test/',
# change this:
# rewritecond %{request_uri} ^(/component/option,com) [nc,or] ##optional - see notes##
# this:
# rewritecond %{request_uri} ^(/test/component/option,com) [nc,or] ##optional - see notes##
#
#####################################################
## can commented out if causes errors, see notes above.
# options followsymlinks
#
# mod_rewrite in use
rewriteengine on
# uncomment following line if webserver's url
# not directly related physical file paths.
# update joomla/mambodirectory (just / root)
rewritebase /
########## begin - joomla! core sef section
############# use section if using joomla! core sef
## (rewritecond) lines in section required if actually
## have directories named 'content' or 'component' on server
## if not have directories these names, comment them out.
#
rewritecond %{request_filename} !-f
rewritecond %{request_filename} !-d
rewritecond %{request_uri} ^(/component/option,com) [nc,or] ##optional - see notes##
#rewritecond %{request_uri} (/|\.htm|\.php|\.html|/[^.]*)$ [nc]
rewriterule ^(content/|component/) index.php
#
########## end - joomla! core sef section
########## begin - 3rd party sef section
############# use section if using 3rd party (non joomla! core) sef extension - e.g. opensef, 404_sef, 404sefx, sef advance, etc
#
rewritecond %{request_uri} ^(/component/option,com) [nc,or] ##optional - see notes##
#rewritecond %{request_uri} (/|\.htm|\.php|\.html|/[^.]*)$ [nc]
rewritecond %{request_filename} !-f
rewritecond %{request_filename} !-d
rewriterule (.*) index.php
#
########## end - 3rd party sef section
index.php code
code: select all
<?php
/**
* @version $id: index.php 4750 2006-08-25 01:08:30z stingrey $
* @package joomla
* @copyright copyright (c) 2005 open source matters. rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html gnu/gpl, see license.php
* joomla! free software. version may have been modified pursuant
* gnu general public license, , distributed includes or
* derivative of works licensed under gnu general public license or
* other free or open source software licenses.
* see copyright.php copyright notices , details.
*/
// set flag parent file
define( '_valid_mos', 1 );
// checks configuration file, if none found loads installation page
if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) {
$self = str_replace( '/index.php','', strtolower( $_server['php_self'] ) ). '/';
header("location: http://" . $_server['http_host'] . $self . "installation/index.php" );
exit();
}
require( 'globals.php' );
require_once( 'configuration.php' );
require_once( 'includes/joomla.php' );
//installation sub folder check, removed work svn
if (file_exists( 'installation/index.php' ) && $_version->svn == 0) {
define( '_install_check', 1 );
include ( $mosconfig_absolute_path .'/offline.php');
exit();
}
// displays offline/maintanance page or bar
if ($mosconfig_offline == 1) {
require( $mosconfig_absolute_path .'/offline.php' );
}
// load system bot group
$_mambots->loadbotgroup( 'system' );
// trigger onstart events
$_mambots->trigger( 'onstart' );
if (file_exists( $mosconfig_absolute_path .'/components/com_sef/sef.php' )) {
require_once( $mosconfig_absolute_path .'/components/com_sef/sef.php' );
} else {
require_once( $mosconfig_absolute_path .'/includes/sef.php' );
}
require_once( $mosconfig_absolute_path .'/includes/frontend.php' );
// retrieve expected url (or form) arguments
$option = strval( strtolower( mosgetparam( $_request, 'option' ) ) );
$itemid = intval( mosgetparam( $_request, 'itemid', null ) );
if ($option == '') {
if ($itemid) {
$query = "select id, link"
. "\n #__menu"
. "\n menutype = 'mainmenu'"
. "\n , id = '$itemid'"
. "\n , published = '1'"
;
$database->setquery( $query );
} else {
$query = "select id, link"
. "\n #__menu"
. "\n menutype = 'mainmenu'"
. "\n , published = 1"
. "\n order parent, ordering"
;
$database->setquery( $query, 0, 1 );
}
$menu = new mosmenu( $database );
if ($database->loadobject( $menu )) {
$itemid = $menu->id;
}
$link = $menu->link;
if (($pos = strpos( $link, '?' )) !== false) {
$link = substr( $link, $pos+1 ). '&itemid='.$itemid;
}
parse_str( $link, $temp );
/** patch, need rework when globals handled better */
foreach ($temp $k=>$v) {
$globals[$k] = $v;
$_request[$k] = $v;
if ($k == 'option') {
$option = $v;
}
}
}
if ( !$itemid ) {
// when no itemid give default value
$itemid = 99999999;
}
// mainframe api workhorse, lots of 'core' interaction routines
//$mainframe = new mosmainframe( $database, $option, '.' );
//$mainframe->initsession();
require_once( $mosconfig_absolute_path .'/includes/sefpatch.php' );
$mainframe = new mossefpatch( $database, $option, '.' );
$mainframe->initsession();
// trigger onafterstart events
$_mambots->trigger( 'onafterstart' );
// checking if can find itemid thru content
if ( $option == 'com_content' && $itemid === 0 ) {
$id = intval( mosgetparam( $_request, 'id', 0 ) );
$itemid = $mainframe->getitemid( $id );
}
/** have valid itemid yet?? */
if ( $itemid === 0 ) {
/** nope, use homepage then. */
$query = "select id"
. "\n #__menu"
. "\n menutype = 'mainmenu'"
. "\n , published = 1"
. "\n order parent, ordering"
;
$database->setquery( $query, 0, 1 );
$itemid = $database->loadresult();
}
// patch lessen impact on templates
if ($option == 'search') {
$option = 'com_search';
}
// loads english language file default
if ($mosconfig_lang=='') {
$mosconfig_lang = 'english';
}
include_once( $mosconfig_absolute_path .'/language/' . $mosconfig_lang . '.php' );
// frontend login & logout controls
$return = strval( mosgetparam( $_request, 'return', null ) );
$message = intval( mosgetparam( $_post, 'message', 0 ) );
if ($option == 'login') {
$mainframe->login();
// js popup message
if ( $message ) {
?>
<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo _login_success; ?>" );
//-->
</script>
<?php
}
if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
// checks presence of return url
// , ensures url not registration or login pages
mosredirect( $return );
} else {
mosredirect( $mosconfig_live_site .'/index.php' );
}
} else if ($option == 'logout') {
$mainframe->logout();
// js popup message
if ( $message ) {
?>
<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo _logout_success; ?>" );
//-->
</script>
<?php
}
if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
// checks presence of return url
// , ensures url not registration or logout pages
mosredirect( $return );
} else {
mosredirect( $mosconfig_live_site.'/index.php' );
}
}
/** information current user sessions table */
$my = $mainframe->getuser();
// detect first visit
$mainframe->detect();
// set overlib check
$mainframe->set( 'loadoverlib', false );
$gid = intval( $my->gid );
// gets template page
$cur_template = $mainframe->gettemplate();
/** temp fix - feature disabled */
/** @global places store information processing of component */
$_mos_option = array();
// precapture output of component
require_once( $mosconfig_absolute_path . '/editor/editor.php' );
ob_start();
if ($path = $mainframe->getpath( 'front' )) {
$task = strval( mosgetparam( $_request, 'task', '' ) );
$ret = mosmenucheck( $itemid, $option, $task, $gid );
if ($ret) {
require_once( $path );
} else {
mosnotauth();
}
} else {
header( 'http/1.0 404 not found' );
echo _not_exist;
}
$_mos_option['buffer'] = ob_get_contents();
ob_end_clean();
initgzip();
// display offline alert if admin logged in
if (defined( '_admin_offline' )) {
include( $mosconfig_absolute_path .'/offlinebar.php' );
}
// loads template file
if ( !file_exists( $mosconfig_absolute_path .'/templates/'. $cur_template .'/index.php' ) ) {
echo _template_warn . $cur_template;
} else {
require_once( $mosconfig_absolute_path .'/templates/'. $cur_template .'/index.php' );
}
// displays queries performed page
if ($mosconfig_debug) {
echo $database->_ticker . ' queries executed';
echo '<pre>';
foreach ($database->_log $k=>$sql) {
echo $k+1 . "\n" . $sql . '<hr />';
}
echo '</pre>';
}
dogzip();
?>
thanks in advance
worsin
did read following lines within .htaccess file?
#only use 1 of 2 sef sections follow. lines can uncommented
# (and used) have 1 #. lines 2 #'s should not uncommented
# in section don't use, lines should start #
Comments
Post a Comment