https://www.icyphoenix.com/viewtopic.php?f=35&t=7326
-----------------------------------
Ripley
Thu 19 Aug, 2010 12:34

Redirect From Portal To Forum How To Make?
-----------------------------------
I want to make forum page main, now it is portal main. How to make it? When users go to site.com they will move to site/forum.com ?


-----------------------------------
spydie
Thu 19 Aug, 2010 14:06

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
open

[b]includes/page_header.php[/b]

Find:

'U_PORTAL' => append_sid(PORTAL_MG), 

Replace with:

'U_PORTAL' => append_sid(FORUM_MG), 

This will redirect everybody, who clicks on Home, to Forum

[hr]

other option is

 you can rename Index.php to index_old.php

and create a  copy of forum.php and name it index.php


-----------------------------------
TheSteffen
Thu 19 Aug, 2010 16:50

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
Or you can edit includes/constants.php:

[codeblock]define('CMS_PAGE_HOME', 'index.' . PHP_EXT);[/codeblock]

So the link will point where you like.


-----------------------------------
Joshua203
Thu 19 Aug, 2010 16:55

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
maybe this would work too?  
htaccess :

[code linenumbers=false]DirectoryIndex forum.php index.php index.html index.htm[/code]

i m not sure if this is good for icyphoenix though :oops:


-----------------------------------
spydie
Thu 19 Aug, 2010 17:45

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
[quote user="TheSteffen" post="49930"]Or you can edit includes/constants.php:

[codeblock]define('CMS_PAGE_HOME', 'index.' . PHP_EXT);[/codeblock]

So the link will point where you like.[/quote]

But i´m not shure, it will open page directly on forum , if you point your navigator to url


-----------------------------------
Ripley
Fri 20 Aug, 2010 06:46

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
[quote user="spydie" post="49928"]

[hr]

other option is

 you can rename Index.php to index_old.php

and create a  copy of forum.php and name it index.php[/quote]

And when the new version of ICY releases will I be able to update after doing this?

I just don't need portal page, it confuses users and not all of them go to forum then, and the main page is forum surelly. When I installed ICY I thought this can change in in acp.


-----------------------------------
spydie
Fri 20 Aug, 2010 08:04

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
thats why i said rename it

because , if you need it again, you just delet the copy of forum (index) and rename index_old to index again


-----------------------------------
Ripley
Fri 20 Aug, 2010 08:28

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
[quote user="spydie" post="49938"]thats why i said rename it

because , if you need it again, you just delet the copy of forum (index) and rename index_old to index again[/quote]

I did not copy forum.php , just rename it to index.php and index.php to index_old.php  :) 

And it works! 

I will delete link to portal or change it to something else  :) Thank you very much  :)


-----------------------------------
spydie
Fri 20 Aug, 2010 10:21

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
you might get a problem now, if you click on forum, because the link goes nowhere, thats why i said make a copy of forum


-----------------------------------
Mighty Gorgon
Tue 31 Aug, 2010 12:45

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
You will also have SEO problems if you don't do it properly.

Changing the constant in constants.php is better.


-----------------------------------
Ripley
Tue 31 Aug, 2010 15:32

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
[quote user="Mighty Gorgon" post="50027"]You will also have SEO problems if you don't do it properly.

Changing the constant in constants.php is better.[/quote]What must I change in constants.php?


-----------------------------------
buldo
Tue 31 Aug, 2010 16:25

Re: Redirect From Portal To Forum How To Make?
-----------------------------------
[quote user="Ripley" post="50038"]What must I change in constants.php?[/quote]

[quote user="TheSteffen" post="49930"]Or you can edit includes/constants.php:

[codeblock]define('CMS_PAGE_HOME', 'index.' . PHP_EXT);[/codeblock]

So the link will point where you like.[/quote]


