Change board index link from "/index.php" to "/"

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
urzh
Registered User
Posts: 91
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Change board index link from "/index.php" to "/"

Post by urzh » Thu Aug 22, 2019 11:01 pm

I'd like to change the board index link in breadcrumbs to direct to my site name "mysite.com" instead of "mysite.com/index.php". I looked in overall_header and saw the home area but unsure what to change to get it working right. Is this possible?

Code: Select all

		<div id="site-description" class="site-description">
				<a id="logo" class="logo" href="<!-- IF U_SITE_HOME -->{U_SITE_HOME}<!-- ELSE -->{U_INDEX}<!-- ENDIF -->" title="<!-- IF U_SITE_HOME -->{L_SITE_HOME}<!-- ELSE -->{L_INDEX}<!-- ENDIF -->"><span class="site_logo"></span></a>
				<h1>{SITENAME}</h1>
				<p>{SITE_DESCRIPTION}</p>
				<p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
			</div>

User avatar
Lumpy Burgertushie
Registered User
Posts: 66594
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Change board index link from "/index.php" to "/"

Post by Lumpy Burgertushie » Thu Aug 22, 2019 11:36 pm

that is in the admin panel under board settings I believe.

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

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

urzh
Registered User
Posts: 91
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Re: Change board index link from "/index.php" to "/"

Post by urzh » Fri Aug 23, 2019 1:04 am

Saw that but if I add my site URL, It adds 2 links and I just want one at the top which redirects to my homepage without index.php. And I want it named "Home" so everyone knows.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66594
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Change board index link from "/index.php" to "/"

Post by Lumpy Burgertushie » Fri Aug 23, 2019 2:25 am

but your board is your site. your homepage is index.php
it doesn't say index.php anywhere on your page so what are you trying to change?.

go back to your admin panel and remove the info you put in the blanks for home and that one will go away.

if you want to rename the "board index" to "home" then you can change that in the language/en/common.php file.


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

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21458
Joined: Fri Aug 29, 2008 9:49 am
Location: Not watching cricket

Re: Change board index link from "/index.php" to "/"

Post by Mick » Fri Aug 23, 2019 9:12 am

Your index should be ‘/‘, ‘mysite/‘ or ‘mysite/folder/‘ etc. if the index.php part isn’t resolving properly you need to speak to your host. Search “directoryindex” for more information or edit .htaccess if you know what to do.
"The more connected we get the more alone we become" - Kyle Broflovski

urzh
Registered User
Posts: 91
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Re: Change board index link from "/index.php" to "/"

Post by urzh » Fri Aug 23, 2019 12:35 pm

Ok so here's my board settings:
CapturFiles_1.png

My page below currently. I want to remove "Board index" altogether and I'll be good because I've decided I'll have one forum.
If I can't do that, I want "board index" to be my homepage. If you click board index now, it makes the index.php.
CapturFiles.png
CapturFiles.png (16.48 KiB) Viewed 183 times

User avatar
</Solidjeuh>
Registered User
Posts: 1704
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Change board index link from "/index.php" to "/"

Post by </Solidjeuh> » Fri Aug 23, 2019 12:44 pm

Use use this in htaccess

Code: Select all

#force no index.php
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

urzh
Registered User
Posts: 91
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Re: Change board index link from "/index.php" to "/"

Post by urzh » Fri Aug 23, 2019 1:22 pm

</Solidjeuh> wrote:
Fri Aug 23, 2019 12:44 pm
Use use this in htaccess

Code: Select all

#force no index.php
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
Sound, thanks mate

Post Reply

Return to “[3.2.x] Support Forum”