Jump to content


how to change default page from portal to forum?


13 replies to this topic

#1 K1boRG

    Member

  • Members
  • PipPip
  • 10 posts

Posted 07 October 2008 - 06:22 AM

http://borked-gaming.oo.lv/forums/ when I enter its automaticaly redirect me to portal, possible to change it to forum and for example add portal id to http://borked-gaming...v/forums/portal ??

#2 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 08 October 2008 - 09:17 AM

First of all, you need to upgrade to Unreal Portal 2.3 for this. After you upgrade, edit init.php and change
define( 'IPB_MAKE_UPORTAL_HOMEPAGE', 1 );
to
define( 'IPB_MAKE_UPORTAL_HOMEPAGE', 0 );


After that, use mod_rewrite to make /forums/portal to to /forums/index.php?act=uportal

If you have no idea what I mean by mod_rewrite, then simply google it.
Posted Image

#3 K1boRG

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 October 2008 - 11:22 AM

http://httpd.apache....od_rewrite.html there is way to many to read :o takes ages...

#4 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 08 October 2008 - 03:52 PM

You simply need something similar to the following in your .htaccess file
RewriteEngine	on
RewriteRule	^portal/$			index.php?act=uportal [L]
RewriteRule	^portal/([^*]+)$	$1 [NC]


Make sure the .htaccess file lives in your /forums directory
Posted Image

#5 K1boRG

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 October 2008 - 04:14 PM

If I haven't ? :o

#6 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 08 October 2008 - 04:16 PM

If you haven't, then you need to upgrade the portal to version 2.3
Posted Image

#7 K1boRG

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 October 2008 - 04:20 PM

Im using 2.3b

I want that my /forums was using for forums, and /portal for portal... Now /forums is uportal...

/**
* Make the IPB portal your default forum page?
*/
define( 'IPB_MAKE_PORTAL_HOMEPAGE', 0 );
but still same...

#8 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 08 October 2008 - 04:42 PM

Not IPB_MAKE_PORTAL_HOMEPAGE but IPB_MAKE_UPORTAL_HOMEPAGE
Posted Image

#9 K1boRG

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 October 2008 - 04:50 PM

Changed to UPORTAL, still /forums is uportal... can't you give me just .htaccess ?

#10 K1boRG

    Member

  • Members
  • PipPip
  • 10 posts

Posted 09 October 2008 - 02:31 PM

help

#11 asdasda

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 22 October 2008 - 06:12 PM

I'm having the same problem. Help :(

#12 K1boRG

    Member

  • Members
  • PipPip
  • 10 posts

Posted 29 October 2008 - 01:27 AM

cricket can u please answer?

#13 K1boRG

    Member

  • Members
  • PipPip
  • 10 posts

Posted 03 November 2008 - 10:38 PM

bump

#14 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 06 November 2008 - 02:03 PM

All the info that you need is already in the above posts, but here's a summary.

1. Upgrade to Unreal Portal v2.3
2. Open up init.php, look for
define( 'IPB_MAKE_UPORTAL_HOMEPAGE', 1 );
and replace with
define( 'IPB_MAKE_UPORTAL_HOMEPAGE', 0 );

3. Create a file called .htaccess in your forums directory with the following:
RewriteEngine	on
RewriteRule	^portal/$			index.php?act=uportal [L]
RewriteRule	^portal/([^*]+)$	$1 [NC]

Posted Image





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users