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 Root to sub domain using 301's?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
::  
Author Message
stevefree



Joined: 16 Jun 2007
Posts: 21

Redirect from Root to sub domain using 301's?Posted: Fri Jul 06, 2007 3:55 am    Post subject: Redirect from Root to sub domain using 301's?

Heya,

I'm hoping to get some assistance. Here's my config:

I'm running the latest phpBB with Mixed Mode Rewrite, Zero Duplicates. I've got the rewrite code running to also point all http://domain.com to http://www.domain.com being that phpbb is installed in the root of my domain name.

Here's what I'm looking for:

I would like to move the phpBB forum to http://forum.domain.com and have all the old links 301 redirect to that location.

Is that possible? Essentially the reason for this is that I'm building a new site on the root and want to keep my existing index with my site.

Anyone have the mod-rewrite code?

Thanks!!!

-Steve
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Redirect from Root to sub domain using 301's?Posted: Sun Jul 08, 2007 7:21 pm    Post subject: Re: Redirect from Root to sub domain using 301's?

Well, it's possible, but it's not the easiest case for redirecting.

If you wanted to only redirect a folder to a sub domain, you could filter the request according to the path asked, redirecting only the request matching the folder to redirect.
Here, we'll have to take care of what we'll be redirecting since some content is supposed to stay in the main domain.

It as well depends on if you where using a mod rewrite or not in the forum. If so, we should be able to build custom HTTP301 redirections, as long as you provide the .htaccess. If not, then, this most likely will have to be dealt with using a bit of php.

Could you tell us a bit more about the precise url to redirect, because in all cases, this will require a per case redirecting.

++

_________________
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
stevefree



Joined: 16 Jun 2007
Posts: 21

Redirect from Root to sub domain using 301's?Posted: Mon Jul 09, 2007 6:55 pm    Post subject: Re: Redirect from Root to sub domain using 301's?

Ouch.... I think I understand what you mean by this being a very difficult task.....

Essentially I want to use the domain for something other than JUST the Forum like it is now (PHPBB is built in the ROOT of the domain name) - http://www.microsoftpost.com. I want to install a BLOG using wordpress or something and then use the phpbb as a forum. Howevery, with 30k posts already indexed with google I didn't want to have to send out all those 404's.

It appears I'll just need to take the hit and move the site to a subfolder or subdomain and send out the 404's......

Thanks for looking at the problem DCZ

-Steve
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Redirect from Root to sub domain using 301's?Posted: Wed Jul 11, 2007 6:49 pm    Post subject: Re: Redirect from Root to sub domain using 301's?

stevefree wrote:

It appears I'll just need to take the hit and move the site to a subfolder or subdomain and send out the 404's......


Don't !

30k 404s could lead up to a blackist, at least would jeopardize a lot your ranking.

I did not say it was not possible, I just said that we must perform a per case redirection, which can be nothing more than small tweaks on the rewriterule and few lines of code.

As well, you could imagine to install wordpress in the same folder as phpBB, would only require to rename either phpBB's or wordpress index.php file and mod the related rewriterules accordingly.

But trust me, you don't want 30k 404 pages.

++

_________________
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
stevefree



Joined: 16 Jun 2007
Posts: 21

Redirect from Root to sub domain using 301's?Posted: Tue Jul 17, 2007 6:34 am    Post subject: Re: Redirect from Root to sub domain using 301's?

dcz wrote:
stevefree wrote:

It appears I'll just need to take the hit and move the site to a subfolder or subdomain and send out the 404's......


Don't !

30k 404s could lead up to a blackist, at least would jeopardize a lot your ranking.

I did not say it was not possible, I just said that we must perform a per case redirection, which can be nothing more than small tweaks on the rewriterule and few lines of code.

As well, you could imagine to install wordpress in the same folder as phpBB, would only require to rename either phpBB's or wordpress index.php file and mod the related rewriterules accordingly.

But trust me, you don't want 30k 404 pages.

++


PHEW.... I'm glad I waited Smile

So, if I put them both in the root, what are your thoughts? Both of the applications use index.php as the ROOT/default page. Could I do something like rename the index.php to phpbb_index.php and then do some redirection? What would you recommend?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Redirect from Root to sub domain using 301's?Posted: Thu Jul 19, 2007 9:59 am    Post subject: Re: Redirect from Root to sub domain using 301's?

There is a mod that teaches you how to rename the phpBB index.php file to whatever you like (forum.php at first if I recall well).

It's pretty simple to implement, like renaming the file and editing the page_header.php link to index.

This would mean to copy / rename the index() function in phpbb_seo_class.php to forum() and would work right away.

Then, you could install wordpress without any trouble in the same folder, as long as you add the wordpress rewriterules at the end of your .htaccess (after the phpBB ones).

++

_________________
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: