PDA

View Full Version : redirect from entire directory


JoeBurns
04-16-2006, 11:05 PM
I have a site where everything that was in a particular directory will be removed from the site. This directory contained pages that some of our clients will have saved in their favorites.

I'm wondering if there is a way to redirect from every page that was in that folder to the home page with one script so I don't have to add a redirect to every page in the directory.

ramandeep
04-17-2006, 08:51 AM
You can do it with htaccess file, Use this (mention your old and new directory)

Redirect /olddirectory http://yoursite.com/newdirectory/

JoeBurns
04-17-2006, 12:24 PM
Will that work on a Windows server? I didn't metion that.