News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Start page not in the root domain...

Started by Rickard, August 16, 2014, 11:28:35 AM

Previous topic - Next topic

Rickard

I have 3 forums
www.poolforum.se
www.atvforum.se
www.varmepumpsforum.com

in Poolforum and ATVforum a click on the forum logo (top left corner) opens the root address (www.poolforum.se)
In Varmepumpsforum a click on the logo takes me to http://www.varmepumpsforum.com/vpforum/index.php , same if i write the domain name in the address field of the browser.

Any one that has a suggestion about what can be wrong, it feels like the start page should be in the root for SEO reasons...
Admin for 3 forums:
www.varmepumpsforum.com
www.poolforum.se
www.atvforum.se
SMF 2.0.15
Default Theme: CS Manual by crip
Simple Portal 2.3.7
Got my own hosted and managed server on www.space2u.com

Deaks

open up ftp and tell us do you have anything in the main folder besides vpforum folder ... is their an .htaccess or index.php file
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Rickard

Yes, there is a index.php file in the folder.

I have had the same problem in my other forums earlier (old MKportal index with redirect in the first line) fixed today.
But if i put in the "default" index that works in the other 2 forums i just come up with a blank page i Varmepumpsforum.com...

<?php
header
('Location: http://www.varmepumpsforum.com/vpforum/index.php');
/*
+--------------------------------------------------------------------------
|   MkPortal
|   ========================================
|   by Meo aka Luponero <Amedeo de longis>
|      Don K. Colburn <visiblesoul.net>
|
|   Copyright (c) 2004-2006 mkportal.it
|   http://www.mkportal.it
|   Email: [email protected]
|
+---------------------------------------------------------------------------
|
|   > MKPortal
|   > Written By Amedeo de longis
|   > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/

/*define ( 'IN_MKP', 1 );

$_SERVER['QUERY_STRING'] = str_replace(array('%3C', '%3E', '<', '>'), array('', '', '', ''), $_SERVER['QUERY_STRING'] );
$_SERVER['PHP_SELF'] = str_replace(array('%3C', '%3E', '<', '>'), array('', '', '', ''), $_SERVER['PHP_SELF'] );

$MK_PATH = "./";
require $MK_PATH."mkportal/conf_mk.php";

switch($MK_BOARD) {
case 'IPB':
$driverf = "IPB/ipb_driverf.php";
$board_functions = "IPB/ipb_board_functions.php";
    break;
case 'PHPBB':
     $driverf = "PHPBB/php_driverf.php";
$board_functions = "PHPBB/php_board_functions.php";
    break;
case 'VB':
     $driverf = "VB/vb_driverf.php";
$board_functions = "VB/vb_board_functions.php";
    break;
case 'OXY':
     $driverf = "oxy_driverf.php";
$board_functions = "oxy_board_functions.php";
    break;
    case 'IPB13':
     $driverf = "IPB13/ipb13_driverf.php";
$board_functions = "IPB13/ipb13_board_functions.php";
    break;
case 'MYBB':
     $driverf = "MYBB/mybb_driverf.php";
$board_functions = "MYBB/mybb_board_functions.php";
    break;
default:
     $driverf = "SMF/smf_driverf.php";
$board_functions = "SMF/smf_board_functions.php";
    break;
}

require $MK_PATH."mkportal/include/$driverf";
require $MK_PATH."mkportal/include/functions.php";
require $MK_PATH."mkportal/include/$board_functions";
require "$mklib->template/tpl_main.php";

$mkportals->input = $mklib->mkp_input();

if($MK_OFFLINE && !$mkportals->member['g_access_cp'] && !$mklib->member['g_access_cpa']) {
$message = $mklib->lang['offline'];
$mklib->off_line_page($message);
exit;
}

$switch = array('blog'         =>   "blog",
                'chat'         =>   "chat",
                'contents'     =>   "contents",
                'downloads'    =>   "downloads",
                'gallery'      =>   "gallery",
                'news'         =>   "news",
                'quote'        =>   "quote",
                'reviews'      =>   "reviews",
                'search'       =>   "search",
                'topsite'      =>   "topsite",
                'urlobox'      =>   "urlobox",
'staff'        =>   "staff",
'docs'         =>   "docs",
'xebook'       =>   "xebook"
                );


if (!isset($switch[$mkportals->input['ind']])) {
    $mkportals->input['ind'] = "contents";
}
if (!$mklib->disablegzip && $mkportals->input['ind'] != "downloads") {
ob_end_clean();
@ob_start('ob_gzhandler');
}
require "./mkportal/modules/{$switch[$mkportals->input
Admin for 3 forums:
www.varmepumpsforum.com
www.poolforum.se
www.atvforum.se
SMF 2.0.15
Default Theme: CS Manual by crip
Simple Portal 2.3.7
Got my own hosted and managed server on www.space2u.com

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Rickard

Yes, and i have noticed that the index page in all my forums have been the mkportal index, probaly for a few years.
I have solved the problem on the other 2 forums earlier today, but when i put in the smf index.php it just shows a blank page in this forum...
Admin for 3 forums:
www.varmepumpsforum.com
www.poolforum.se
www.atvforum.se
SMF 2.0.15
Default Theme: CS Manual by crip
Simple Portal 2.3.7
Got my own hosted and managed server on www.space2u.com

Deaks

You could move all the files from the forum folder into the main folder, then run repair_settings.php to fix the paths
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Rickard

OK but i have a LOT of files and folders in the main folder, making backup will take a day...
And a day to go back if it doesn't work...

I need to check what distinguishes my sites, why this forum doesn't work as supposed.
Admin for 3 forums:
www.varmepumpsforum.com
www.poolforum.se
www.atvforum.se
SMF 2.0.15
Default Theme: CS Manual by crip
Simple Portal 2.3.7
Got my own hosted and managed server on www.space2u.com

Kindred

Well, actually, it is worked exactly as "it is supposed"
Because it is doing exactly what the files tell it to do...

This might. It be what you WANT It to do... In which case, you will need to change the files...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Rickard

But why doesnt the same index file work in this forum when i try to change it, when it works in my other forums.
I have taken a index.php-file from a clean installation of SMF, and swapped the old mkportal index file.
It works as suuposed in atv and pool forums, but not in the varmepumpsforum, just showes a blank page...
Admin for 3 forums:
www.varmepumpsforum.com
www.poolforum.se
www.atvforum.se
SMF 2.0.15
Default Theme: CS Manual by crip
Simple Portal 2.3.7
Got my own hosted and managed server on www.space2u.com

Kindred

because, apparently something ELSE is misconfigured....

Jusr replacing files, willy nilly rarely solves the problem -- unless you replace ALL the files with clean ones.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Rickard

Usually one gets a warning message in the browser when the index file doesnt work... Not a blank page with no source code...
Admin for 3 forums:
www.varmepumpsforum.com
www.poolforum.se
www.atvforum.se
SMF 2.0.15
Default Theme: CS Manual by crip
Simple Portal 2.3.7
Got my own hosted and managed server on www.space2u.com

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Rickard

What is strange is that simple portal didnt put a new index file in the root when i installed it, very strange.
When i make a clean install, simple portal opens (startpage) when i type in the root domain.
Admin for 3 forums:
www.varmepumpsforum.com
www.poolforum.se
www.atvforum.se
SMF 2.0.15
Default Theme: CS Manual by crip
Simple Portal 2.3.7
Got my own hosted and managed server on www.space2u.com

Advertisement: