I could have sworn I had posted some basic Apache Functions and Mod Rewrite’s on here a long time ago but today when I actually drew a blank and couldn’t remember how to do a 301 they were nowhere to be found so I am going to create a new category on here for Apache and re-post a few that I use frequently so that I can refer back to them.
This is a simple 301 redirect. Let’s say you build a new website inside a new directory such as <cms> and you are now ready to go live w/ the website but you don’t want to lose your SEO benefit or be penalized for restructuring your site, you can use a 301 redirect to accomplish this. It’s very simple, see sample code below:
1: Redirect 301 /index.htm http://www.yourwebsite.com/directory/filename.htm
Questions or Comments?