phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
problems after install

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Mixed mod rewrite
::  
Author Message
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 97

problems after installPosted: Tue Feb 20, 2007 11:05 am    Post subject: problems after install

Hello
I have problems after install mixed mod rewrite.
Think it´s wrong htacess
htacess in root:
Code:
RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^forum/.*/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.*-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.*-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

Forum is installed in domain.de/forum/
On Portalsite (mx) I get error
Code:
Fatal error: Call to a member function on a non-object in /www/htdocs/xxxx/forum/includes/sessions.php on line 614

Forum index work but the rewrite urls dont work

_________________
macnack
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

problems after installPosted: Tue Feb 20, 2007 11:58 am    Post subject: Re: problems after install

The .htaccess is correct, could be because you still use the previous url standard, with the "-vf" as advised when upgrading, and still updated your .htaccess (using "-f" etc ..).

Then, concerning mxBB, we're dealing with it there.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 97

problems after installPosted: Tue Feb 20, 2007 12:36 pm    Post subject: Re: problems after install

Very Happy Thanks it work
now there is a new problem with navigation in mx-portal,
it show links like domain.de/forum/?page=1 instead of domain.de/index.php?page=1

_________________
macnack
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

problems after installPosted: Tue Feb 20, 2007 1:09 pm    Post subject: Re: problems after install

This is normal, as mxBB is using index.php and append_sid as well.

You can force the usage of index.php everywhere in the phpbb_seo_class.php :
Look for :
Code:

         'index' => ''


And replace with :
Code:

         'index' => 'index.php'


or even :

Code:
         'index' => 'index.html'


as long as you add a rewriterule for it for both mxBB and phpBB.

The zero dupe will follow the setting in the forum and will force the selected choice.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 97

problems after installPosted: Tue Feb 20, 2007 1:32 pm    Post subject: Re: problems after install

Rolling Eyes I don´t understand
I edit to 'index' => 'index.html' but that´s not solved the problem
problem is that navigation link to domain.de/forum/?page=1
instead of domain.de/index.php?page=1

_________________
macnack
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

problems after installPosted: Tue Feb 20, 2007 1:34 pm    Post subject: Re: problems after install

Well, try it, if you edit it to :

Code:
'index' => 'index.php'


you'll see index.php back in your link, if you put index.html it will be index.html, it's up to you Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 97

problems after installPosted: Tue Feb 20, 2007 1:41 pm    Post subject: Re: problems after install

Now navigation open forum index site for every portal site link Confused
have a look http://www.detektoreninfo.de

_________________
macnack
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

problems after installPosted: Tue Feb 20, 2007 2:00 pm    Post subject: Re: problems after install

All right, this is still because both are sing the same filename.
You can do the following, open :

Code:
phpbb_seo/phpbb_seo/class.php


Find :

Code:
         $this->url = $this->seo_path['phpbb_url'] . $this->seo_static['index'];


Replace with :

Code:
         $this->url = ( (strpos($this->url_in, PORTAL_URL) !== FALSE) ? PORTAL_URL : $this->seo_path['phpbb_url'] ) . $this->seo_static['index'];


This will work as long as links built in mxBB do use the full url for all links.

For the menu it's rather easy, you just need to add PORTAL URL to all :

Code:
   $menu_link = append_sid(


in mx_menu_nav.php, as well as to the "U_URL" template var.

You'll have to add it in mxBB header as well, should be about it.

I'll take a deeper look into mxBB SEO soon Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 97

problems after installPosted: Tue Feb 20, 2007 7:30 pm    Post subject: Re: problems after install

Now all modules (linkdb, kb, pafildb) don´t work
you can go to startsite of modules but all links have the wrong /forum/ in url Confused
linkdb http://www.detektoreninfo.de/index.php?page=3
kb http://www.detektoreninfo.de/index.php?page=14&mode=cat&cat=3

_________________
macnack
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

problems after installPosted: Tue Feb 20, 2007 11:13 pm    Post subject: Re: problems after install

All right, for now, you can do one thing, open :

Code:
forum/includes/sessions.php


Find :

Code:
   $url = $phpbb_seo->url_rewrite($url, $non_html_amp);


Replace with :

Code:
   $url = (defined('IN_PORTAL') ) ? $url : $phpbb_seo->url_rewrite($url, $non_html_amp);


This will prevent link to be rewritten within mxBB.

mxBB module mostly call append_sid from another function, so something will be possible, I just need some time to take a look at it Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 97

problems after installPosted: Wed Feb 28, 2007 9:14 pm    Post subject: Re: problems after install

Hello
now I find out that there is something wrong with urls in forum.
There are bad Links in viewforum and viewtopic below the header.
With IE some links look good but with Firefox you can see that links link to forum index.
Have a look with at http://www.detektoreninfo.de/forum/board-cafe-f56.html

_________________
macnack
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

problems after installPosted: Thu Mar 01, 2007 11:49 am    Post subject: Re: problems after install

have you put back this piece of code in phpbb_seo_class.php ?
Code:

         $this->url = $this->seo_path['phpbb_url'] . $this->seo_static['index'];


++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 97

problems after installPosted: Thu Mar 01, 2007 12:09 pm    Post subject: Re: problems after install

No
but now I put it back and with firefox you can see bad url linked to a forum not to forum index

_________________
macnack
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

problems after installPosted: Sat Mar 03, 2007 1:19 pm    Post subject: Re: problems after install

It could be linked to the fact you' activated mod rewrite within mxBB, the link is page2 for index now.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Mixed mod rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: