View Single Post
  #5 (permalink)  
Old Apr 17th, 2008, 19:16
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 264
Thanks: 2
Thanked 0 Times in 0 Posts
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!?
Reply With Quote