Setting up a 301 Redirect

Setting up a 301 Redirect

Posted by: fieldposition
Posted on: 2007-06-14 08:26:00

I am not sure if I can even do this but I need to set up my server to do a 301 redirect when a request comes in for a particular file.

I have a podcast that used to publish the feed at the site. Now I've gone to Feedburner but iTunes and various other podcatchers cannot update to my new url until I set up this 301 redirect.

Anyone know if I can do that with a shared hosting plan?

Re: Setting up a 301 Redirect

Posted by: Raz2133
Posted on: 2007-06-14 08:33:00

In reply to:

Anyone know if I can do that with a shared hosting plan?


You can implement a 301 redirect using a .htaccess file in the web-directory for your domain.

For example; The following line placed in a .htaccess file would redirect all accesses to the file 'old.html' to 'new.html'

redirect 301 /old.html http://www.yourdomain.com/new.html

Note: The destination needs to be specified as a full URL, as in the example above.

Mark

Tags: 301 redirectfeedburneritunesshared hostingpodcast