Web Design and Development Forums

Redirect broken links

This is a discussion on "Redirect broken links" within the Search Engine Optimization (SEO) section. This forum, and the thread "Redirect broken links are both part of the Search Engines and SEO category.

Old Apr 16th, 2008, 17:53   #1 (permalink)
Oak
 
Join Date: Dec 2007
Location: London
Age: 35
Posts: 266
Redirect broken links

I changed the names of some of my web pages. Can someone provide code for redirect the old links?

Thanks
Oak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 17th, 2008, 01:14   #2 (permalink)
Rob
Head Admin & CEO
 
Rob's Avatar
 
Join Date: Jul 2003
Location: bug busting new style
Age: 34
Posts: 3,311
Blog Entries: 7
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: Redirect broken links

what technology do the old liks use oak? html, asp, php?
__________________
Rob Collyer - SEO Specialist (8 years+)
Owner & Founder of Webforumz.com

My Mrs's site:- Student Midwife Forums

I am currently unavailable for private work
-------------------------------------------------
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 17th, 2008, 18:15   #3 (permalink)
Oak
 
Join Date: Dec 2007
Location: London
Age: 35
Posts: 266
Re: Redirect broken links

Well, all the files end in .php, but they don't all use php code.
Oak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 17th, 2008, 18:23   #4 (permalink)
Chief Moderator
 
aso186's Avatar
 
Join Date: Oct 2007
Location: UK
Posts: 715
Blog Entries: 2
Send a message via Skype™ to aso186
Re: Redirect broken links

Do you know if you're running the Apache web server?

You can use a .htaccess in the root of your web server to redirect certain pages to new ones.

For example, to redirect old.php to new.php, use;
Code: Select all
Redirect /old.php http://yoursite.com/new.php
__________________

aso186 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 17th, 2008, 19:16   #5 (permalink)
Oak
 
Join Date: Dec 2007
Location: London
Age: 35
Posts: 266
Re: Redirect broken links

Quote:
Do you know if you're running the Apache web server?

You can use a .htaccess in the root of your web server to redirect certain pages to new ones.

For example, to redirect old.php to new.php, use;
Yes, Apache.

The code seems very straight forward. If there were many pages would I insert the following into my .htaccess file?
HTML: Select all
Redirect /old.php http://yoursite.com/new.php
Redirect /old2.php http://yoursite.com/new.php
Redirect /old3.php http://yoursite.com/new.php
- saltedm8

I like that, def useful, so I would use your code for files that don't exsist as well as the code given by aso186 for old links. Resulting in everything being redirected!?
Oak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 17th, 2008, 19:18   #6 (permalink)
Oak
 
Join Date: Dec 2007
Location: London
Age: 35
Posts: 266
Re: Redirect broken links

Hang on, where did saltedm8's reply go??
Oak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 18th, 2008, 07:47   #7 (permalink)
Junior Member
 
Join Date: Feb 2007
Location: USA
Age: 25
Posts: 35
Re: Redirect broken links

Yes make changes in the htaccess file. Also it worth to make 301 redirect on server side to keep good SEO results.
Therefore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 18th, 2008, 09:36   #8 (permalink)
Lead Administrator
 
saltedm8's Avatar
 
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,062
Blog Entries: 1
Send a message via MSN to saltedm8
Re: Redirect broken links

Quote:
Hang on, where did saltedm8's reply go??
sorry, i accidentally deleted it and did not have time to re-write it
__________________
recipebite.co.uk - its a working progress...
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 18th, 2008, 21:09   #9 (permalink)
Oak
 
Join Date: Dec 2007
Location: London
Age: 35
Posts: 266
Re: Redirect broken links

Quote:
Yes make changes in the htaccess file. Also it worth to make 301 redirect on server side to keep good SEO results.
Sorry can you explain in more detail, thanks.

Quote:
sorry, i accidentally deleted it and did not have time to re-write it
Any chance of re-posting?
Oak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
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

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
CSS links broken up and missing zippoloko CSS Forum 2 Apr 18th, 2008 01:36
[SOLVED] Javscript broken in IE 6 (but nothing else, it would seem)... jonnymorris JavaScript Forum 9 Mar 31st, 2008 17:28
Video's are broken :( Stormraven Webforumz Cafe 5 Mar 15th, 2008 11:34
javascript checking for broken links Code_breaker JavaScript Forum 6 Nov 8th, 2007 07:19
Dreamweaver - Broken Links mark_88_turbo Graphics Forum 5 Apr 8th, 2005 08:34



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 21:04.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59