Where can we change forum.html in code

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

Where can we change forum.html in code

Postby iwanttobelieve » Thu Dec 17, 2009 5:50 pm

Well sorry for yet another confusing title, anyway, I just want to know which part of phpbb-seo package redirect forums/ to forum.html since I have just lost this functionality on my forum. In .htaccess I can find forum.html to forums/index.php but not vice versa.

Please help, thanks :?
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Advertisement

Re: Where can we change forum.html in code

Postby Uncrowned_Guard » Thu Dec 17, 2009 11:15 pm

I have already asked this:
Change fourm.html

:P Hope that is what you wanted to know
Uncrowned_Guard
 
Posts: 3
Joined: Mon Nov 23, 2009 10:26 pm

Re: Where can we change forum.html in code

Postby iwanttobelieve » Fri Dec 18, 2009 1:20 pm

Thanks but that's not actually the problem, anyway let's continue the discussion there :mrgreen:
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Re: Where can we change forum.html in code

Postby dcz » Sat Dec 19, 2009 10:25 am

All the redirecting is performed by the zero duplicate. The code doing this is in index.php.

The zero dupe only redirects example.com/phpBB/ (and example.com/phpBB/index.php) to example.com/phpBB/forum.html if you are using forum.html as you forum index url, but you could also use "nothing" and see example.com/phpBB/index.php and example.com/phpBB/forum.html redirected to example.com/phpBB/.

So, if you see example.com/phpBB/ being redirected to example.com/phpBB/forum.html, it may be because it is required for some option (such as virtual root) or because you have chosen it. In such case, the .htaccess generator should add the appropriate rewriterule to handle it. But it's not the rewriterules that will do the actual redirect.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm

Re: Where can we change forum.html in code

Postby iwanttobelieve » Sun Dec 20, 2009 3:02 am

Actually, my problem is it doesn't redirect to domain/forum.html if I goes to domain.com/forums/.

In the phpbb-seo setup file I got nothing like this: $this->seo_static['index'] = 'forum'; in .htaccess I got a rewriterule to rewrite domain.com/forum.html to domain.com/forums/index.php internally. Since the 301 redirection from forums to forum.html ain't in .htaccess, where could it be? I saw something in the index.php that does this, but as stated above I got nothing about index in phpbb-seo setup file.

Thanks for your help!
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Re: Where can we change forum.html in code

Postby dcz » Sun Dec 27, 2009 3:28 pm

The zero duplicate indeed adds some code to do this in index.php :
index.php <= to forum.html
http://demo.phpbb-seo.net/index.php <= to /

Do grab its install and see if you did add everything, and make sure that it's activated in acp.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Bing [Bot], VoilaBot [Bot] and 2 guests