MyBB Community Forums

Full Version: Redirect to diff page once
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

So for April fools I am basically telling all my users the site is closing. For this I have created a separate page with a timed redirect to a page that says April Fools, go to the forum etc...

However I tried on my localhost naming this file index.html but it still goes to index.php first. How do I make it so that when people type in url.com it goes to the april fools page, but only once? I thought about doing a redirection but that happens on every visit.

Would appreciate any help.
Cheers,
LTC
Most forums can not afford to joke about that, since there's the danger that some users will actually up and leave and find a different forum on that day... Wink

regarding index.html vs. index.php, in your .htaccess put 'DirectoryIndex index.html index.php' to make it use the index.html first (and fall back to index.php if no .html is there). Usually it's the other way around though.
Thanks for that.

However how do I make it so that it goes to index.html with just putting http://xxx.com instead of http://xxx.com/index.html ?

Thanks.
The DirectoryIndex directive in .htaccess determines which files to look for when no file is specified (i.e. URL ends with / like xxx.com/).
It still goes to index.php when I load http://url.com
(2009-03-30, 11:21 PM)lordtopcat Wrote: [ -> ]How do I make it so that when people type in url.com it goes to the april fools page, but only once? I thought about doing a redirection but that happens on every visit.

Yes How can we do that??
please help.
Yes thankx
but I want it make them enter in a sepicific page in my site after they enter my site (any click after index) ??
how is that??