| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 113
|
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.  |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 113
|
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.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
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 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |