| :: |
| Author |
Message |
roady89
Joined: 21 Dec 2006 Posts: 13
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15130
|
|
| Back to top |
|
 |
roady89
Joined: 21 Dec 2006 Posts: 13
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15130
|
|
| Back to top |
|
 |
roady89
Joined: 21 Dec 2006 Posts: 13
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15130
|
|
| Back to top |
|
 |
roady89
Joined: 21 Dec 2006 Posts: 13
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15130
|
|
| Back to top |
|
 |
roady89
Joined: 21 Dec 2006 Posts: 13
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15130
|
|
| Back to top |
|
 |
roady89
Joined: 21 Dec 2006 Posts: 13
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15130
|
|
| Back to top |
|
 |
roady89
Joined: 21 Dec 2006 Posts: 13
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15130
|
|
| Back to top |
|
 |
|
|