iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-07-2008, 08:25 AM
inertia's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Apr 2006
Location: Lancaster, UK
Posts: 1,018
inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6
Default 301 in htaccess

Hello again! A company of ours has 2 parallel sites. We have decided to shut down the poor one and focus on the better one.

To do this i have transferred all the decent content to the primary site and setup 301s on the second site, using htaccess, to the relevant pages. Is this ok?! Any other tips?

One problem i do have is that there are a lot of product pages from the secondary site appearing in the index for long tail keywords. Rather than 301 redirect all of these individually is there a quicker way? All of these pages are in one directory, e.g. www.site.com/shop. Can i add a single redirect, using htaccess, to this directory or will this cause all of the pages which are in the serps to be de-listed?

Cheers guys. Please feel free to query any of the above as my descriptive skills are a little poor this monday morning!
__________________
Latest Blog Post: Google Consultant - Should this Job Title be Allowed? - Matt Inertia's SEO Blog - SEOers.org

"Carpe diem, seize the day boys, make your lives extraordinary"
- Dead Poets Society
Reply With Quote
  #2 (permalink)  
Old 01-07-2008, 08:48 AM
Feydakin's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jan 2005
Location: ho jeez!!
Posts: 885
Feydakin RepRank 8Feydakin RepRank 8Feydakin RepRank 8Feydakin RepRank 8Feydakin RepRank 8Feydakin RepRank 8Feydakin RepRank 8Feydakin RepRank 8Feydakin RepRank 8
Default Re: 301 in htaccess

Yes, you are doing it the right way..

You can redirect all of the pages in the sub-directory to your home page or to the store page on the new site which is probably the best place to point it..

Once the 301 is seen by the search engines they will read it to mean that the page has been permanently moved to the new location so yes, the old pages will be de-indexed over time..
__________________
Steve : Animal Charms Animal Jewelry | Fishing Blog
I'm smelling a whole lot of if coming off of this plan.
Reply With Quote
  #3 (permalink)  
Old 01-07-2008, 08:54 AM
inertia's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Apr 2006
Location: Lancaster, UK
Posts: 1,018
inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6
Default Re: 301 in htaccess

Quote:
Originally Posted by Feydakin View Post
You can redirect all of the pages in the sub-directory to your home page or to the store page on the new site which is probably the best place to point it..
To do this, is it this line of code in the htaccess file?

redirect 301 http://www.site1.com/store http://www.site2.com/store

Will this work for any page which appears in this sub directory and lower directories ?
__________________
Latest Blog Post: Google Consultant - Should this Job Title be Allowed? - Matt Inertia's SEO Blog - SEOers.org

"Carpe diem, seize the day boys, make your lives extraordinary"
- Dead Poets Society
Reply With Quote
  #4 (permalink)  
Old 01-07-2008, 10:16 AM
thindenim's Avatar
WebProWorld Pro
 
Join Date: Jan 2007
Location: Scotland
Posts: 255
thindenim RepRank 2
Default Re: 301 in htaccess

You need to put in a wild card: -

RewriteRule ^store/(.*) http://www.site2.com/store/$1 [R=301,L]

Think this should do the trick.
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
  #5 (permalink)  
Old 01-07-2008, 11:08 AM
inertia's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Apr 2006
Location: Lancaster, UK
Posts: 1,018
inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6
Default Re: 301 in htaccess

Cheers dude! Mod rewrite is next on my list of things to learn...
__________________
Latest Blog Post: Google Consultant - Should this Job Title be Allowed? - Matt Inertia's SEO Blog - SEOers.org

"Carpe diem, seize the day boys, make your lives extraordinary"
- Dead Poets Society
Reply With Quote
  #6 (permalink)  
Old 01-07-2008, 11:19 AM
inertia's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Apr 2006
Location: Lancaster, UK
Posts: 1,018
inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6inertia RepRank 6
Default Re: 301 in htaccess

That Mod rewrite code hasnt worked mate. Any ideas? Surely i can do this with a standard 301!?
__________________
Latest Blog Post: Google Consultant - Should this Job Title be Allowed? - Matt Inertia's SEO Blog - SEOers.org

"Carpe diem, seize the day boys, make your lives extraordinary"
- Dead Poets Society
Reply With Quote
  #7 (permalink)  
Old 01-07-2008, 11:38 AM
WebProWorld Pro
 
Join Date: Dec 2007
Location: Brussels, Belgium
Posts: 163
Jean-Luc RepRank 2
Default Re: 301 in htaccess

Your code is not valid.

Code:
redirect 301 store http://www.site2.com/store
This code redirects URL's like http://www.site1.com/store/this_url to http://www.site2.com/store/this_url.

Code:
RewriteEngine on
RewriteRule ^store(.*)$ http://www.site2.com/store/ [L,R=301]
This code redirects URL's like http://www.site1.com/store/this_url to http://www.site2.com/store/.

Place this .htaccess file in the home directory of site1.com.

Jean-Luc
__________________
Checking redirects made easy | | Professional AWStats Services
Reply With Quote
  #8 (permalink)  
Old 01-07-2008, 04:49 PM
thindenim's Avatar
WebProWorld Pro
 
Join Date: Jan 2007
Location: Scotland
Posts: 255
thindenim RepRank 2
Default Re: 301 in htaccess

Lose the trailing slash actually and it will definitely work for /store or anything after that: -

RewriteEngine on

RewriteRule ^store(.*) http://www.site2.com/store$1 [R=301,L]
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess apwade Web Programming Discussion Forum 2 10-12-2007 07:05 AM
htaccess + redirect newconceptdesign Search Engine Optimization Forum 5 02-14-2007 07:39 PM
.htaccess a lot simpler HostEBiz Search Engine Optimization Forum 0 08-15-2006 08:22 AM
how to make use of .htaccess Miki Search Engine Optimization Forum 8 06-11-2005 10:53 AM
.htaccess question jestep Web Programming Discussion Forum 2 06-09-2005 01:07 PM


All times are GMT -4. The time now is 05:48 PM.



Search Engine Optimization by vBSEO 3.3.0