Apache 301 redirect subfolders
Just a quick one. Having tried to redirect foo.com to bar.com I found that foo.com/link would point to bar.com/link. Not something that I wanted to happen, I just wanted a simple redirect straight to the home page. Here’s the fix inside your <VirtualHost> in the apache config.
RedirectMatch 301 ^(.*) http://www.bar.com/
Like this Article? Share it!
About the Author
Andy has been in IT support in the academic industry for over 7 years now, with an in-depth knowledge of both Windows and Unix based systems.