| :: |
| Author |
Message |
macnack PR0

Joined: 20 Jun 2006 Posts: 96
|
Posted: Mon Jun 26, 2006 1:39 pm Post subject: .htacess in mxBB-portal |
|
|
Hello
I need help with my mixed mod rewrite in mx-portal.
In Portal you can see on forum site links like
viewforum.php?f=70 and for same forum last msg block show the correct link basar-vf70.html
same problem with block Announcements
This is my .htacess today in Portal root:
| Code: | Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^http://www.forum.detektoreninfo.de/.+/([^/]+\.html)$ /phpBB2/index.php [R=301,L]
# CATEGORIES
RewriteRule ^http://www.forum.detektoreninfo.de/.+-vc([0-9]+)\.html$ /phpBB2/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^http://www.forum.detektoreninfo.de/.+-vf([0-9]+)-([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^http://www.forum.detektoreninfo.de/.+-vf([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^http://www.forum.detektoreninfo.de//topic([0-9]+)-([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^http://www.forum.detektoreninfo.de/topic([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^http://www.forum.detektoreninfo.de/post([0-9]+)\.html$ /phpBB2/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^http://www.forum.detektoreninfo.de/member([0-9]+)\.html$ /phpBB2/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END phpBB2 PAGES
#####################################################
RewriteCond %{HTTP_HOST} !^www\.detektoreninfo\.de$
RewriteRule ^(.*)$ http://www.detektoreninfo.de/$1 [L,R=301]
rewriteRule ^mx-portal_2.6.0.4/index.php http://www.forum.detektoreninfo.de/ [R=301,L]
rewriteRule ^mx-portal_2.6.0.4/forum(.*)$ http://www.forum.detektoreninfo.de/$1 [R=301,L]
rewriteRule ^mx-portal_2.6.0.4(.*)$ http://www.detektoreninfo.de$1 [R=301,L]
rewriteRule ^mx(.*)$ http://www.detektoreninfo.de$1 [R=301,L]
rewriteRule ^ringmaker.php(.*)$ http://www.schatzsucherzone.de$1 [R=301,L]
rewriteRule ^ringfaq.php http://www.schatzsucherzone.de/ringfaq.php [R=301,L] |
use mixed mod v 0.0.2
What´s wrong? |
_________________ macnack |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Mon Jun 26, 2006 2:09 pm Post subject: Re: .htacess in mxBB-portal |
|
|
Everything is normal here, mx_forum needs some small tweaking to output new urls for forums.
Open :
Find :
| Code: |
else
{
$l_moderators = ' ';
$moderator_list = '';
} |
After add :
This would as well work together with advanced and mixed phpBB seo mod Rewrite.
Then I noticed your portal is showing PHPSESSID, please read this article to get rid of them (at least if you still see some while first connecting as guest once you have set proper cookies settings)
And no need to add http://www.forum.detektoreninfo.de in your .htaccess as long as you put it in your sub domain folder (and not in the portal's one).
You'll probably have as well to set cookie domain to .detektoreninfo.de (noticed the dot "." ?) in phpBB config to allow cross sessions between portal and forum.
In the end you should have for forum in phpBB folder :
| Code: | Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.forum\.detektoreninfo\.de$
RewriteRule ^(.*)$ http://www.forum.detektoreninfo.de/$1 [L,R=301]
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /phpBB2/index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /phpBB2/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /phpBB2/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /phpBB2/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END phpBB2 PAGES
#####################################################
|
And in mxbb portal folder :
| Code: | Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.detektoreninfo\.de$
RewriteRule ^(.*)$ http://www.detektoreninfo.de/$1 [L,R=301]
rewriteRule ^mx-portal_2.6.0.4/index.php http://www.forum.detektoreninfo.de/ [R=301,L]
rewriteRule ^mx-portal_2.6.0.4/forum(.*)$ http://www.forum.detektoreninfo.de/$1 [R=301,L]
rewriteRule ^mx-portal_2.6.0.4(.*)$ http://www.detektoreninfo.de$1 [R=301,L]
rewriteRule ^mx(.*)$ http://www.detektoreninfo.de$1 [R=301,L]
rewriteRule ^ringmaker.php(.*)$ http://www.schatzsucherzone.de$1 [R=301,L]
rewriteRule ^ringfaq.php http://www.schatzsucherzone.de/ringfaq.php [R=301,L] |
As those are two concerning two different domains. (www is a sub domain as well )
++ |
_________________ 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: 96
|
Posted: Mon Jun 26, 2006 6:14 pm Post subject: Re: .htacess in mxBB-portal |
|
|
Hello dcz
.htacess in my forum root is this one: | Code: | Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
RewriteCond %{HTTP_HOST} !^www\.forum.detektoreninfo\.de$
RewriteRule ^(.*)$ http://www.forum.detektoreninfo.de/$1 [L,R=301]
|
phpBB2 folder was on http:www.detektoreninfo.de and chance now to http://www.forum.detektoreninfo.de
If I use the htacess you post for forum root,
forum.vf_html makes 404 error
----
mx_forum.php was updatet and run thanks
where must I add the code in the mx_announce.php?
| Quote: | | Then I noticed your portal is showing PHPSESSID, please read this article to get rid of them |
Oh no
you know that I can only a few english words  |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Mon Jun 26, 2006 6:49 pm Post subject: Re: .htacess in mxBB-portal |
|
|
Well, for the rewriterule, yes, I forgot you need some as well in mxBB portals folder to run properly mx_forum.
Then, for PHPSESSID, you could as well try to contact your ISP, they know for sure how to deal with those. It's a simple setting.
For the news, , hehe let's go :
Open :
| Code: | | module/mx_newssuite/includes/news.php |
Find :
| Code: | //
// Assign replacement variables to template
// |
Before add :
| Code: |
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$news[$i]['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $news[$i]['topic_title'] ) : $news[$i]['topic_title'] ;
$seo_topic_name = $news[$i]['topic_title'];
// www.phpBB-SEO.com SEO TOOLKIT END |
And this should do the trick while making sure the censor system is used  |
_________________ 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: 96
|
Posted: Mon Jun 26, 2006 8:39 pm Post subject: Re: .htacess in mxBB-portal |
|
|
Hi
Ok know I have install newssuite
but there are some not correct links (read more and comments).
correct => http://www.forum.detektoreninfo.de/topic3824.html
at this time it show like =>http://www.detektoreninfo.de/forum/topic3824.html
think the config.php of mx portal is not correct?
| Code: | <?php
// mxBB-Portal auto-generated config file
// Do not change anything in this file!
// This file must be put into the mxBB-Portal directory, not into the phpBB directory.
$dbms = 'mysql4';
$dbhost = 'localhost';
$dbname = 'xxxxxxxx';
$dbuser = 'xxxxxxxx';
$dbpasswd = 'xxxxxxxx';
$mx_table_prefix = 'mx_';
$table_prefix = 'phpbb_';
$phpbb_root_path = $mx_root_path . '../forum/';
define('MX_INSTALLED', true);
define('PHPBB_INSTALLED', true);
?> |
If I chanche the
$phpbb_root_path = $mx_root_path . '../forum/';
to
$phpbb_root_path = 'http://www.forum.detektoreninfo.de';
I get a lot of errors  |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Mon Jun 26, 2006 9:13 pm Post subject: Re: .htacess in mxBB-portal |
|
|
ho this is an news_suite issue.
Still in module/mx_newssuite/includes/news.php
find :
| Code: | | 'TOPIC_LINK' => append_sid($phpbb_root_path ."viewtopic.$phpEx?t=" . $news[$i]['topic_id']), |
Replace with :
| Code: | | 'TOPIC_LINK' => append_sid(PHPBB_URL ."viewtopic.$phpEx?t=" . $news[$i]['topic_id']), |
PHPBB_URL stands for the phpBB URL ( ) with and ending "/" among all mxBB code, useful in such occasions
++ |
_________________ 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: 96
|
Posted: Mon Jun 26, 2006 9:28 pm Post subject: Re: .htacess in mxBB-portal |
|
|
Hi dcz
read more is know correct
but comments doesnt work
 |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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

Joined: 20 Jun 2006 Posts: 96
|
Posted: Tue Jun 27, 2006 8:43 am Post subject: Re: .htacess in mxBB-portal |
|
|
The url in comments works but looks like this
-http://www.forum.detektoreninfo.de/post22841.html?#22841
notice the ? |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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

Joined: 20 Jun 2006 Posts: 96
|
Posted: Tue Jun 27, 2006 9:33 am Post subject: Re: .htacess in mxBB-portal |
|
|
mh
I add the code but nothing chance  |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Tue Jun 27, 2006 9:54 am Post subject: Re: .htacess in mxBB-portal |
|
|
Oups,
add the suggested line before :
| Code: | | $url = (substr($url, strlen($url) - 1, 1) == '?') ? substr($url, 0, strlen($url) - 1) : $url; |
eg :
| Code: | $url = str_replace ("?#", "#", $url);
$url = (substr($url, strlen($url) - 1, 1) == '?') ? substr($url, 0, strlen($url) - 1) : $url; |
++ |
_________________ 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: 96
|
Posted: Tue Jun 27, 2006 10:24 am Post subject: Re: .htacess in mxBB-portal |
|
|
Yeah
thanks it works  |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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