MyBB Community Forums

Full Version: Modify/Change Dennis's "Portal Redirect" plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
Is there a way to change this plugin so when a user/guest go to "http://www.***.com" or "http://www.***.com/forum" or "http://www.***.com/forum/index.php" he/she will be directed to the /portal.php. But, if he/she has a link to a forum/thread/post (like: "http://www.***.com/forum/forum-2.html" or "http://www.***.com/forum/Forum-Some_Forum"), then he/she will be directed to the forum/thread/post and not to the /portal.php?
Hi,

add the following line to .htaccess

DirectoryIndex portal.php index.php index.html

This will show portal, when access to http://www.***.com/ (or the forum directory).

But it will not redirect index.php to portal.php
Thanks, But the good in Dennis's plugin is that it does the "jump" only once in an amount of time (24 hours, in my case) and using the .htaccess will do that every time a user will come to my forums - that I don't want as my users won't like to start each of there "search" / "use of forum" from a place where they don't see the forums.