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  
 
   
Redirect from phpbb subforum to main forum?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
::  
Author Message
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 113

Redirect from phpbb subforum to main forum?Posted: Tue Oct 09, 2007 7:24 pm    Post subject: Redirect from phpbb subforum to main forum?

dcz, I want to move all threads from a couple of subforums back into the parent forum and then delete the subforums.

The trouble is that I have some good backlinks to the subforum URLs, which I don't want to throw away.

I guess the answer is to add a line or two to my .htaccess, so that incoming links to those subforum URLs will be redirected to the parent forum.

In other words, let's say the URLs are:

-www.mydomain.com/forum/starwars/leia-f25 and
-www.mydomain.com/forum/starwars/luke-f26

What lines do I need so that they both redirect to
-www.mydomain.com/forum/starwars-f11?

Thanks. Smile
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Redirect from phpbb subforum to main forum?Posted: Thu Oct 11, 2007 7:55 am    Post subject: Re: Redirect from phpbb subforum to main forum?

Is this dealing with phpBB2 or phpBB3 ?

Please post in the appropriate forum.

++

_________________
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
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 113

Redirect from phpbb subforum to main forum?Posted: Thu Oct 11, 2007 7:32 pm    Post subject: Re: Redirect from phpbb subforum to main forum?

phpbb3

Sorry, I thought this was the correct forum, as it's a mod rewrite query as far as I can tell rather than a phpbb one. But feel free to move the topic to a more appropriate place if you think it shouldn't be here.

I only want two URLs to be redirected into one. So would the following work?

redirect 301 forum/starwars/leia-f25 http://www.mydomain.com/forum/starwars-f11 and

redirect 301 forum/starwars/luke-f26 http://www.mydomain.com/forum/starwars-f11 ?

And if so, where in the htaccess should they go? Above the main phpbb mod rewrite rules or below?

Thanks. Smile
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Redirect from phpbb subforum to main forum?Posted: Sun Oct 21, 2007 11:53 am    Post subject: Re: Redirect from phpbb subforum to main forum?

Well, mod_rewrite does not seems to me to be the best way to deal with this, but it depends.

If you only have few redirect to perform, you can hard code them in the .htaccess, but if you have many, doing it with php could be better.

Your redirects should work and shall be placed before the RewriteEngine on, since it's not mod_rewrite.

Have you tested them ?

++

_________________
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  » Apache mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: