Jump to content

htaccess help


mcloan

Recommended Posts

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 .htaccess

2.  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!
Link to comment
Share on other sites

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.