mcloan Posted January 14, 2007 Share Posted January 14, 2007 I have a static html site and I am going to be moving some urls to new locations on the site. I would like to use a 301 redirect through a .htaccess file, but want to be sure I do it 100% correct. From what I have read on the web the below is what I think I need to do. Can someone tell me if I am totally correct.1. open blank note pad and save it as .htaccess2. For each 301 redirect simply place the below in as may times as needed:Redirect 301 /111-strawberrybread.html http://www.mysite.com/specialbreads/strawberrybread.html 3. Save .htaccess file and place it in my root directory.Is this correct? Secondly any special requirements need on the server to handle this other than apache server with mode rewrite turned on?Thank you! Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 15, 2007 Share Posted January 15, 2007 I dont think you even need mod_rewrite in place. An example of what you are trying to do is:old website = http://www.oldwebsite.com/subpageold/new website = http://www.newwebsite.com/subpage/=Redirect 301 /subpageold http://www.newwebsite.com/subpage/-steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.