MyBB Community Forums

Full Version: Portal-redirect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i would like to set the portal as my main page, I have Tried the .htaccess method and also the portal-redirect-for-1-6 plugin.

.htaccess worked but also broke a bunch of other things.

portal-redirect-for-1-6 works for like 10mins then fails and starts taking you back to the forums.

So my question is, can someone please explain what the portal-redirect-for-1-6 plugin does and if there is anyway of editing the original php files to do the same without the plugin, of is there another method that can direct users to the portal upon visiting my site.

Plugin i used: http://mods.mybb.com/view/portal-redirect-for-1-6

Website: http://group935.net/portal.php

Regards
Smity
in htaccess simply use

DirectoryIndex portal.php

then edit your header and footer templates to set a Home link to the domain only, no file. Change logo link to the home as well. Set board url to index page and home url to the domain only.
(2012-10-16, 04:34 AM)pavemen Wrote: [ -> ]in htaccess simply use

DirectoryIndex portal.php

then edit your header and footer templates to set a Home link to the domain only, no file. Change logo link to the home as well. Set board url to index page and home url to the domain only.

When i do this all the forum links become broken.

Eg: "forumdisplay.php?fid=15" becomes "forum-15.html" and gives a 404 page.
i checked the plugin download page and i see that it redirect you from index.php to portal.php
you can get it done by adding a php code to the index.php
<?php
   header( 'Location: http://group935.net/portal.php' ) ;
?>
or you can get it done with some html
<meta http-equiv="Refresh" content="1; URL=http://group935.net/portal.php">
^you can change the number '1' to the number of the seconds that the browser will wait until it go to the other url
i hope that i helped
regards,
(2012-10-16, 10:30 AM)illusionalp Wrote: [ -> ]i checked the plugin download page and i see that it redirect you from index.php to portal.php
you can get it done by adding a php code to the index.php
<?php
   header( 'Location: http://group935.net/portal.php' ) ;
?>
or you can get it done with some html
<meta http-equiv="Refresh" content="1; URL=http://group935.net/portal.php">
^you can change the number '1' to the number of the seconds that the browser will wait until it go to the other url
i hope that i helped
regards,

yah, but wont that also take them to portal every time they try and go to the forum?
(2012-10-16, 10:47 AM)smity Wrote: [ -> ]
(2012-10-16, 10:30 AM)illusionalp Wrote: [ -> ]i checked the plugin download page and i see that it redirect you from index.php to portal.php
you can get it done by adding a php code to the index.php
<?php
   header( 'Location: http://group935.net/portal.php' ) ;
?>
or you can get it done with some html
<meta http-equiv="Refresh" content="1; URL=http://group935.net/portal.php">
^you can change the number '1' to the number of the seconds that the browser will wait until it go to the other url
i hope that i helped
regards,

yah, but wont that also take them to portal every time they try and go to the forum?
yes ,i think i misunderstood the plugin can you explain it for me ?
(2012-10-16, 10:08 AM)smity Wrote: [ -> ]
(2012-10-16, 04:34 AM)pavemen Wrote: [ -> ]in htaccess simply use

DirectoryIndex portal.php

then edit your header and footer templates to set a Home link to the domain only, no file. Change logo link to the home as well. Set board url to index page and home url to the domain only.

When i do this all the forum links become broken.

Eg: "forumdisplay.php?fid=15" becomes "forum-15.html" and gives a 404 page.

you need to disable "User search engine friendly URLs" in the ACP or remove the redirects from your htaccess file