Google Optimization
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsGoogleGoogle Optimization

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old July 21st, 2008, 04:28 AM
Funky Funky is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 41 Funky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 31 sec
Reputation Power: 4
Muliple 301 redirects

Hi, I am about to launch a new site and want to 301 redirect all the old URLs to the new site URLs. Is there an easy and best way to this in one file or do I need to create seperate files for each old page? Or can it be done at the server side?

Reply With Quote
  #2  
Old July 21st, 2008, 05:21 AM
seomonkeymanocp's Avatar
seomonkeymanocp seomonkeymanocp is offline
Live and Learn!
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: London, England
Posts: 1,012 seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level)seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level)seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level)seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level)seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 9 h 18 m 22 sec
Reputation Power: 18
Send a message via MSN to seomonkeymanocp
Quote:
Originally Posted by Funky
Hi, I am about to launch a new site and want to 301 redirect all the old URLs to the new site URLs. Is there an easy and best way to this in one file or do I need to create seperate files for each old page? Or can it be done at the server side?


As people found out a while back im not that great with .htaccess etc...

But if i had to do this i would create a page (php or asp depending on your file extensions) and i would make it 301 redirect to [newurldomain].com/[getpageurl].asp.

If included on all pages this would suffice as it would pull the current page name and then just redirect to the new domain, adding the page name in.

Reply With Quote
  #3  
Old July 21st, 2008, 06:29 AM
pro_seo's Avatar
pro_seo pro_seo is offline
Moderator
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2006
Location: I N D I A
Posts: 2,908 pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 6 Days 17 h 11 m 34 sec
Reputation Power: 40
Send a message via MSN to pro_seo Send a message via Yahoo to pro_seo Send a message via Google Talk to pro_seo Send a message via Skype to pro_seo
Quote:
Originally Posted by Funky
Hi, I am about to launch a new site and want to 301 redirect all the old URLs to the new site URLs. Is there an easy and best way to this in one file or do I need to create seperate files for each old page? Or can it be done at the server side?


Considering you are keeping the folder and file structure/ name same in the new site, you can use this code in the htaccess of your old domain:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

This will redirect every page of the old URL to its corresponding new page in the new domain.
__________________

SEO FAQs - You might find your answer here.
SEOchat Forum Rules - Read Before You Post


**Do what you feel in your heart to be right- for you'll be criticized anyway. You'll be damned if you do, and damned if you don't.**

Reply With Quote
  #4  
Old July 21st, 2008, 07:03 AM
full house's Avatar
full house full house is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Philippines
Posts: 762 full house User rank is Corporal (100 - 500 Reputation Level)full house User rank is Corporal (100 - 500 Reputation Level)full house User rank is Corporal (100 - 500 Reputation Level)full house User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 12 h 37 m 40 sec
Warnings Level: 1
Number of bans: 1
Reputation Power: 4
Send a message via Yahoo to full house Send a message via Google Talk to full house
I got a bit confused!You said its a new site but you want to redirect the old url? How is that happen?

Reply With Quote
  #5  
Old July 21st, 2008, 07:08 AM
pro_seo's Avatar
pro_seo pro_seo is offline
Moderator
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2006
Location: I N D I A
Posts: 2,908 pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level)pro_seo User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 6 Days 17 h 11 m 34 sec
Reputation Power: 40
Send a message via MSN to pro_seo Send a message via Yahoo to pro_seo Send a message via Google Talk to pro_seo Send a message via Skype to pro_seo
Quote:
Originally Posted by full house
I got a bit confused!You said its a new site but you want to redirect the old url? How is that happen?


Simple!

Old site

http://www.abc.com/flowers/roses.html

New Site

http://www.xyz.com/flowers/roses.html

He wants to redirect the old URL to the new one.

Reply With Quote
  #6  
Old July 21st, 2008, 07:27 AM
nick279 nick279 is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 6 nick279 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 30 sec
Reputation Power: 0
How many URLs and what kind of hosting?

My preferred way is to setup a RewriteMap text file with old and corresponding new addresses in.

This means you don't swamp your .htaccess file with hundreds of redirects, but you need to have a host/server capable of adding it to their apache configuration file

Could then sit a file e.g. redirects.txt and it would look like

Code:
old.html new.html
testing/old-html.asp test/new.asp


And if done correctly do redirects for all the files

Bit of a headache to set up but works really well once it's done

Reply With Quote
  #7  
Old July 21st, 2008, 08:09 AM
Funky Funky is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 41 Funky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 31 sec
Reputation Power: 4
I have about 2000 pages but really only about 150 with any worthwhile PR and optimised well. We are going from .asp to .aspx on a windows server.

Thanks for all you help

Reply With Quote
  #8  
Old July 21st, 2008, 08:15 AM
nick279 nick279 is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 6 nick279 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 30 sec
Reputation Power: 0
I don't code aspx (code php) but know from experience there's a function something like 'applicationBeginRequest'

You can put a switch / select statement in here exploding / analysing the URL and perform redirects on 150 addresses no problem

Reply With Quote
  #9  
Old July 21st, 2008, 10:21 AM
seomonkeymanocp's Avatar
seomonkeymanocp seomonkeymanocp is offline
Live and Learn!
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: London, England
Posts: 1,012 seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level)seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level)seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level)seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level)seomonkeymanocp User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 9 h 18 m 22 sec
Reputation Power: 18
Send a message via MSN to seomonkeymanocp
Quote:
Originally Posted by Funky
I have about 2000 pages but really only about 150 with any worthwhile PR and optimised well. We are going from .asp to .aspx on a windows server.

Thanks for all you help


Ok. so a normal asp 301 is the following:

Code:
<%
' Permanent redirection
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "/blue-widget.asp"
Response.End
%>


All you would need to do is have it get the current filename, redirect to the new domain and add an "x" on to the end so it would go from: http://xyz.com/blue-widget.asp and will then be http://abc.com/blue-widget.aspx

This should work if included on every page (the code needs to be ammended obv. but if you are reverting to aspx you should know how to do it, or should have an IT guy who does).

Reply With Quote
Reply

Viewing: SEO Chat ForumsGoogleGoogle Optimization > Muliple 301 redirects


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT