ReDirect to home.php

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
kenerly
Registered User
Posts: 79
Joined: Fri May 23, 2003 6:25 am

ReDirect to home.php

Post by kenerly »

I would like to redirect my users to home.php instead of index.php. Like you would do if running a portal. What is the best way to do this.

Thanks
User avatar
pascal24
Registered User
Posts: 60
Joined: Mon Apr 06, 2009 7:12 am
Location: Netherlands
Contact:

Re: ReDirect to home.php

Post by pascal24 »

in .htacces (just the forumroot)

2 lines beneath the last line,
add:

Code: Select all

DirectoryIndex home.php
-Pascal

Support will not be given via PM, MSN or e-mail
kenerly
Registered User
Posts: 79
Joined: Fri May 23, 2003 6:25 am

Re: ReDirect to home.php

Post by kenerly »

Code: Select all

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

DirectoryIndex home.php
Here is my modded .htaccess file, but is not working. Still going to index.php
User avatar
pascal24
Registered User
Posts: 60
Joined: Mon Apr 06, 2009 7:12 am
Location: Netherlands
Contact:

Re: ReDirect to home.php

Post by pascal24 »

My bad,

this should work:

Code: Select all

DirectoryIndex home.php index.php index.html index.htm
instead of what I first had...
-Pascal

Support will not be given via PM, MSN or e-mail
User avatar
Lumpy Burgertushie
Registered User
Posts: 68553
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: ReDirect to home.php

Post by Lumpy Burgertushie »

it would help if we knew where you are trying to do this.

what do you want to be redirected from ?

please explain exactly what you are trying to do.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
kenerly
Registered User
Posts: 79
Joined: Fri May 23, 2003 6:25 am

Re: ReDirect to home.php

Post by kenerly »

Using the .htaccess file pascel posted works for http://christiangamers.net/network making the user direct to home.php as the main (home) page of the forum.

Now I need to set it where after someone registers or logs in or out (using ucp.php) they are directed to home.php and not index.php.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68553
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: ReDirect to home.php

Post by Lumpy Burgertushie »

I have not tested this, work from copies to be safe.

open ucp.php in your text editor only.

find every instance of "redirect" if it says to redirect to index change that to home
save and upload and test.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
kenerly
Registered User
Posts: 79
Joined: Fri May 23, 2003 6:25 am

Re: ReDirect to home.php

Post by kenerly »

That seems to work, thanks...
Locked

Return to “[3.0.x] Support Forum”