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, 03:28 AM
Funky Funky is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 46 Funky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 54 m 51 sec
Reputation Power: 6
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, 04:21 AM
seomonkeymanocp's Avatar
seomonkeymanocp seomonkeymanocp is offline
Live and Learn!
SEO Chat Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2006
Location: London, England
Posts: 1,577 seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Weeks 3 Days 5 h 58 m 26 sec
Reputation Power: 91
Send a message via MSN to seomonkeymanocp Send a message via Skype 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, 05:29 AM
pro_seo's Avatar
pro_seo pro_seo is offline
Moderator
SEO Chat Expert (3500 - 3999 posts)
 
Join Date: Apr 2006
Location: I N D I A
Posts: 3,513 pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 3 Days 7 h 43 m 10 sec
Reputation Power: 175
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, 06:03 AM
full house's Avatar
full house full house is offline
SEO
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Philippines
Posts: 1,024 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: 4 Days 12 h 5 m 39 sec
Number of bans: 1
Reputation Power: 7
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, 06:08 AM
pro_seo's Avatar
pro_seo pro_seo is offline
Moderator
SEO Chat Expert (3500 - 3999 posts)
 
Join Date: Apr 2006
Location: I N D I A
Posts: 3,513 pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level)pro_seo User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 3 Days 7 h 43 m 10 sec
Reputation Power: 175
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, 06: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, 07:09 AM
Funky Funky is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 46 Funky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 54 m 51 sec
Reputation Power: 6
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, 07: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, 09:21 AM
seomonkeymanocp's Avatar
seomonkeymanocp seomonkeymanocp is offline
Live and Learn!
SEO Chat Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2006
Location: London, England
Posts: 1,577 seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level)seomonkeymanocp User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Weeks 3 Days 5 h 58 m 26 sec
Reputation Power: 91
Send a message via MSN to seomonkeymanocp Send a message via Skype 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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek