Page 1 of 1
Changing default page to portal.php

Posted:
Thu Jan 18, 2007 9:18 pm
Author: SquidHC
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://www.eternityguild.info PHP Version: MySQL Version: What was done before the problem appeared? What was done to try to solve the problem? De.scription and MessageI have tried the following methods to redirect my default page to portal.php
I placed both of these in "index.html" files and uploaded them into my root directory.
1.
<html>
<head>
<title>index</title>
<META>
</head>
</html>
2.
<DOCTYPE>
<html>
<head>
<title>redirect to MYSITE</title>
<meta>
</head>
</html>
And yes, I changed "YOUR URL" to mine. <img>
Still not working, any suggestion? It keeps getting directed to my forum page..
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 9:31 pm
Author: Teelk
Try this...
- Code: Select all
<DOCTYPE> <HTML><HEAD><META></HEAD><BODY></BODY></HTML>
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 9:35 pm
Author: SquidHC
I tried that and still no love...
<DOCTYPE>
<HTML>
<HEAD>
<META>
</HEAD>
<BODY>
</BODY>
</HTML>
Do I need to edit anything on this?
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 9:39 pm
Author: Teelk
If you've changed the URL, then no. It's not working for me on my test board, but I'm running a windows box and don't know how to set htaccess style stuff in windows.
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 9:39 pm
Author: Frost
Try this
and
BACKUP all files you edit...
Open:includes/page_header.php
Find:- Code: Select all
'U_INDEX' => append_sid('index.'.$phpEx),
Replace With]
- Code: Select all
'U_INDEX' => append_sid('portal.'.$phpEx),
[b]Find]
- Code: Select all
'U_PORTAL' => append_sid('portal.'.$phpEx),
[b]Replace With]
- Code: Select all
'U_PORTAL' => append_sid('index.'.$phpEx),
[b]Open]
index.php
[b]Find:- Code: Select all
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
Replace With]
- Code: Select all
'U_VIEWCAT' => append_sid("portal.$phpEx?" . POST_CAT_URL . "=$cat_id"))
[b]Rename]
index.php to portal.php
[b]Rename:portal.php to index.php
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 9:48 pm
Author: IntegraMOD
"SquidHC";p="19739" wrote:I tried that and still no love...
<DOCTYPE>
<HTML>
<HEAD>
<META>
</HEAD>
<BODY>
</BODY>
</HTML>
Do I need to edit anything on this?
This redirect works but you have to visit your site by going to
http://www.your-domain/index.html otherwise it still goes to index.php
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 9:53 pm
Author: SquidHC
Yeah Im trying to avoid having to have people type in the /index.html
Ill try his idea
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 9:54 pm
Author: Frost
Or if you have a htaccess file you could try this..
- Code: Select all
DirectoryIndex portal.php index.php index.html
That way it should load in that order... I think.. lol
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 10:09 pm
Author: SquidHC
Hey Frost, your way worked. Thanks man.

Posted:
Thu Jan 18, 2007 10:12 pm
Author: SquidHC
Now when I hit "Home" on my Board Navigation it takes me to my forums haha.
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 10:16 pm
Author: Frost
lol, i didn't think of that. Just change the links in overall_header.tpl or through ACP with qbar/qmenu whatever
or...
replace backed up files and try the htaccess method
If you were going to try this, you could "copy" the files with the edits you did, so in case the htaccess didnt work you wouldnt have to do the edits again...
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 10:32 pm
Author: SquidHC
Could you tell me what file to find overall_header.tpl in? Or possibly a .script line to look for.
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 10:35 pm
Author: IntegraMOD
"SquidHC";p="19762" wrote:Could you tell me what file to find overall_header.tpl in? Or possibly a .script line to look for.
No need to edit overall headder use ACP - General - Qbar and edit the links there that way it will work for all templates
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 10:38 pm
Author: Frost
gffb is right, changing through ACP is better, I'm just code happy <img>
Re: Changing default page to portal.php

Posted:
Thu Jan 18, 2007 10:49 pm
Author: SquidHC
Ok thanks.