Uninstall, can it be done?

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

Postby dcz » Fri Nov 28, 2008 3:48 pm

And old.com/phpbb2/*.* in not reidrected to new.com/*.* ?

Sorry to ask again, but I need all this confirms to answer you more precisely.

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Postby Stokerpiller » Fri Nov 28, 2008 5:18 pm

No, old.com/phpbb2 is not redirected to newdomain
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm

Postby dcz » Sat Dec 06, 2008 8:30 am

mmm, what about this only in the old domain's root .htaccess :

Code: Select all
RewriteEngine on
RewriteRule ^phpbb2/?(.*) http://www.mynewdomain.com/$1 [QSA,L,NC,R=301]
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby Stokerpiller » Sat Dec 06, 2008 9:00 am

No, still no luck :cry:
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm

Postby Stokerpiller » Sat Dec 06, 2008 10:00 am

I found a solution that works:
Code: Select all
RewriteEngine on
Redirect 303 /phpbb2 http://www.newdomain.dk/


But how SEO wise is this?
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm

Postby dcz » Sat Dec 06, 2008 2:46 pm

Code: Select all
RewriteEngine on
Redirect 301 /phpbb2 http://www.newdomain.dk/


would be better.

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: Uninstall, can it be done?

Postby Stokerpiller » Sun Jun 07, 2009 10:33 pm

Hello

I am using the above postet redirect.php file on a board.

I have edited .htaccess like this:
Code: Select all
# You may need to un-comment the following lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ /redirect.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /redirect.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /redirect.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /redirect.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /redirect.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /redirect.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /redirect.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /redirect.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /redirect.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /redirect.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /redirect.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /redirect.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /redirect.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


However it doesnt work on forums like this:www.doamin.com/bananas.html

How to fix it?
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm

Re: Uninstall, can it be done?

Postby dcz » Mon Jun 08, 2009 10:46 am

In your old phpbb_seo/cache/phpbb_cache.php, you should have something like :
Code: Select all
$this->cache_config['forum'] = array ( 1 => 'bananas', 2 => 'apples', );

EG :
Code: Select all
$this->cache_config['forum'] = array ( id => 'forum-url',  );


in redirect.php, after :
Code: Select all
$_start = $start ? "&start=$start" : '';

Add this array, with a new name :
Code: Select all
$forum_urls = array ( 1 => 'bananas', 2 => 'apples', );
$forum_uri = !empty($_GET['forum_uri']) ? preg_replace('`[^a-z0-9_-]+`', '', trim($_GET['forum_uri'])) : '';
if (!$forum_id && !empty($forum_uri)) {
   if ($id = @array_search($forum_uri, $forum_urls)) {
      $forum_id = max(0, (int) $id);
   }
}


You will then just need to add the forum without id rewriterules connected to redirect.php as you did for others in your .htaccess.

Have you given a try to our last SEO premod ?

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: Uninstall, can it be done?

Postby Stokerpiller » Mon Jun 08, 2009 11:41 am

I have done the redirect.php thing

But I dont get the htaccess part:
Code: Select all
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ /redirect.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /redirect.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /redirect.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /redirect.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /redirect.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /redirect.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /redirect.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /redirect.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /redirect.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /redirect.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /redirect.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /redirect.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /redirect.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

What should I do here?
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm

Re: Uninstall, can it be done?

Postby dcz » Mon Jun 08, 2009 11:52 am

Add this :
Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)(-([0-9]+))\.html$ /redirect.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)\.html$ /redirect.php?forum_uri=$1 [QSA,L,NC]


At the end of your .htaccess, should do it.

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: Uninstall, can it be done?

Postby Stokerpiller » Mon Jun 08, 2009 12:10 pm

Thanks for the help, it works perfect.
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm

Previous

Return to phpBB SEO Premod

Who is online

Users browsing this forum: No registered users and 5 guests