View Full Version : redirect from entire directory

04-16-2006, 10: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.

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

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

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