.htaccess file redirect

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm trying to block access to a few files on my site with .htaccess.

Moving the files to a folder and locking it down isn't an option, so I
need to be able to specify the files' path in .htaccess and redirect to
a certain page. All the while still allowing my site to be able to
access them.

Thanks in advance.

Re: .htaccess file redirect

KoRnDragon wrote:
Quoted text here. Click to load it

<Files whatever>
  Redirect permanent (some URL)


<FilesMatch some-regular-expression>
  Redirect permanent (some URL)

should work, no?

Steve Sobol, Professional Geek   888-480-4638   PGP: 0xE3AE35ED
Company website: http://JustThe.net /
Personal blog, resume, portfolio: http://SteveSobol.com /
E: sjsobol@JustThe.net Snail: 22674 Motnocab Road, Apple Valley, CA 92307

Site Timeline