How to Remove the .index.php from my forum url?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
User avatar
victory1
Registered User
Posts: 935
Joined: Sun Oct 10, 2010 6:47 pm

How to Remove the .index.php from my forum url?

Post by victory1 »

I asked this in support and I was told I needed to post this in style support. So. how to remove the .index.php when you click on forum for the Black Pearl style?
guess I'm not making myself clear. I keep getting responses that has nothing to do with what I'm asking. For example the main page of this site is http://www.phpbb.com/ if you click on community you get http://www.phpbb.com/community/
Mine portal is fine but if you click on forum you get http://sonyreaderboards.com/forums/index.php and I simply want it to say http://sonyreaderboards.com/forums/

Thanks
User avatar
Rahber
Former Team Member
Posts: 2720
Joined: Tue Feb 12, 2008 3:39 pm
Location: Pakistan
Name: Rahber

Re: How to Remove the .index.php from my forum url?

Post by Rahber »

does that make difference ???

anyway
open your menu_block.html

find

Code: Select all

<a href="{U_INDEX}">{L_FORUM}</a>
replace it with

Code: Select all

<a href="http://sonyreaderboards.com/forums/">{L_FORUM}</a>
refresh your template from acp.

and if you want to change it globally you will have to change the

Code: Select all

'U_INDEX'				=> append_sid("{$phpbb_root_path}index.$phpEx"),
to

Code: Select all

'U_INDEX'				=> append_sid("{$phpbb_root_path}"),
in includes/functions.php
then you dont even require the template change i have mentioned above.
User avatar
victory1
Registered User
Posts: 935
Joined: Sun Oct 10, 2010 6:47 pm

Re: How to Remove the .index.php from my forum url?

Post by victory1 »

Thanks that worked!

Return to “[3.0.x] Styles Support & Discussion”