| :: |
| Author |
Message |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: 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 |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: Tue Feb 20, 2007 12:36 pm Post subject: Re: problems after install |
|
|
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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
Posted: 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 :
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 |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: Tue Feb 20, 2007 1:32 pm Post subject: Re: problems after install |
|
|
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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: Tue Feb 20, 2007 1:41 pm Post subject: Re: problems after install |
|
|
Now navigation open forum index site for every portal site link
have a look http://www.detektoreninfo.de |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
Posted: 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
++ |
_________________ 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 |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
Posted: 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
++ |
_________________ 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 |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: 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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: 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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
|
|