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  
 
   
Old indexed google links

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



Joined: 21 Dec 2006
Posts: 13

Old indexed google linksPosted: Tue Jan 30, 2007 2:03 pm    Post subject: Old indexed google links

I recently changed my phpBB folder name to golf_carts. I updated all my links and did a 301 redirect using the old phpBB2/index.php file to the new golf_carts/index.php. Google has indexed 549 pages from my site but they all have the old url and they come up as dead links now. I have been trying to do a mod-rewrite with htaccess and I cant get it too work. I do have a linux server.

Can someone show me the proper way to redirect all those dead URL's to golf_carts/index.php?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15130

Old indexed google linksPosted: Tue Jan 30, 2007 3:56 pm    Post subject: Re: Old indexed google links

And Welcome Very Happy

Well, you need more than index.php redirection, if the phpBB2/ folder does not exist any more, you can redirect all at once using .htaccess :

Code:
RewriteRule ^phpBB2/(.*)$ /golf_carts/$1 [R=301,L,NC]


In your root's .htaccess.

So if your server is able to use mod rewrite, you'll need to delete the phpBB2/ folder and add this RewriteRule after :

Code:
RewriteEngine on
RewriteBase /


Or after the www prefix redirection, by the way, a must Wink

++

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



Joined: 21 Dec 2006
Posts: 13

Old indexed google linksPosted: Wed Jan 31, 2007 12:47 am    Post subject: Re: Old indexed google links

The phpBB2 folder does exsist but only for a subfolder called "userpix". Is there a way I can keep that folder and still do a re-write? I need to keep the phpBB2 folder and subfolder "userpix" intact or my image urls are all bad.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15130

Old indexed google linksPosted: Wed Jan 31, 2007 11:27 am    Post subject: Re: Old indexed google links

You can try :
Code:
RewriteCond  %{REQUEST_URI} !^phpBB2/userpix/$
RewriteRule ^phpBB2/(.*)$ /golf_carts/$1 [R=301,L,NC]


Or :
Code:
RewriteCond    %{REQUEST_FILENAME}  !-f
RewriteRule ^phpBB2/(.*)$ /golf_carts/$1 [R=301,L,NC]


++

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



Joined: 21 Dec 2006
Posts: 13

Old indexed google linksPosted: Wed Jan 31, 2007 12:46 pm    Post subject: Re: Old indexed google links

Well...I have tried all those and a few others. I am going to have to contact my host and make sure I have the mod-rewrite module loaded. I cant get any kind of response from using ANY combination in the .htaccess file.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15130

Old indexed google linksPosted: Wed Jan 31, 2007 12:47 pm    Post subject: Re: Old indexed google links

What is your full .htaccess code ?

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



Joined: 21 Dec 2006
Posts: 13

Old indexed google linksPosted: Wed Jan 31, 2007 12:49 pm    Post subject: Re: Old indexed google links

At the moment the codes is as follows.
Code:
RewriteEngine On
RewriteBase /
RewriteCond    %{REQUEST_FILENAME}  !-f
RewriteRule ^phpBB2/(.*)$ /golf_carts/$1 [R=301,L,NC]
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15130

Old indexed google linksPosted: Wed Jan 31, 2007 12:58 pm    Post subject: Re: Old indexed google links

Could you try :

Code:
RewriteEngine On
RewriteBase /
RewriteRule ^phpBB2/(.*)$ /golf_carts/$1 [R=301,L,NC]


and if it works, to fix the images, try this :

Code:
RewriteEngine On
RewriteBase /
RewriteRule ^phpBB2/([^userpix/].*)$ /golf_carts/$1 [R=301,L,NC]


If it does not work, it will most likely mean mod rewrite is not an option.

You could use this instead Wink

++

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



Joined: 21 Dec 2006
Posts: 13

Old indexed google linksPosted: Wed Jan 31, 2007 1:40 pm    Post subject: Re: Old indexed google links

I obviously dont have mod-rewrite on my server.....(Thats go-daddy for you)....I'm gonna have to get off there hosting service.

Anyways...The viewtopic and veiwforum mod you suggested works perfect.

Thank you dcz!!

I also summited the new sitemap file....So everythig should be good for now....My next mod will be mixed-mode re-write.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15130

Old indexed google linksPosted: Wed Jan 31, 2007 1:46 pm    Post subject: Re: Old indexed google links

Another think I did not thought of is :

Code:
RedirectPermanent /phpBB2/ /golf_carts/


or :

Code:
RedirectPermanent /phpBB2/ http://www.example.com/golf_carts/


Which should as well work in .htaccess, without mod_rewrite.

++

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



Joined: 21 Dec 2006
Posts: 13

Old indexed google linksPosted: Wed Jan 31, 2007 10:19 pm    Post subject: Re: Old indexed google links

I was wrong in my earlier statement...it seems the htaccess file is working now. Is installation of the htaccess file something that takes effect immediately? I thought the viewforum and viewtopic files were doing the trick but when I removed the htaccess file it quit working...put it back and it started working again....Sorry for the confusion on my part.

Thanks again dcz!
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15130

Old indexed google linksPosted: Wed Jan 31, 2007 10:25 pm    Post subject: Re: Old indexed google links

Usually it's active right when uploaded, but it can be delayed a bit on shared and clustered hosting, depending on the circumstances.

Its not often in all cases, and should no last more than few seconds.

++

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



Joined: 21 Dec 2006
Posts: 13

Old indexed google linksPosted: Thu Feb 01, 2007 12:54 am    Post subject: Re: Old indexed google links

Thank you so much dcz.....there must have been some lag with the .htaccess file...Works perfect now. This is what i ended up with. I kept all the old images in phpBB2/userpix/ and then changed the new upload URL to golf_carts/userpix/ so now everything is working perfectly as well as my indexed pages on google.

Code:
RewriteEngine On
RewriteBase /
RewriteRule ^phpBB2/([^userpix/].*)$ /golf_carts/$1 [R=301,L,NC]
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15130

Old indexed google linksPosted: Thu Feb 01, 2007 11:10 am    Post subject: Re: Old indexed google links

Wink

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

Navigation Similar Topics

Jump to: