301 Redirect Help!

bees

New Member
Hey Everyone!

I have a client who got shutdown by DotEasy because he outgrew his 'unlimited' plan through them with his podcasts. I'm trying to setup a 301 redirect for anyone trying to find a .mp3 file within a folder called /podcasts (directing them to a page on a different URL for the time being) - but no matter what variation of .htaccess syntax I try I keep getting errors.

Tried redirecting the whole folder:
redirect 301 ^/podcasts/ http://www.blowinsmokepodcast.com/oops.php

and only .mp3 files:
redirect 301 ^(.*).mp3$ http://www.blowinsmokepodcast.com/oops.php

Thanks in advance!
- Jason
 

bluecollar01

New Member
Rather than placing a redirect in the .htaccess you could put the redirect on an index page in the directory.

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

hope this helps
 

bees

New Member
Thanks BC, but the problem is that DotEasy won't allow web access to the folder, therefore I don't think you're solution would work. I don't want to redirect the whole site, just anything calling an *.mp3 or the /podcasts/ folder.
 
Top