Search Engine Optimization > Webmaster World > .htaccess file redirect
.htaccess file redirect
Posted by KoRnDragon on March 13th, 2006

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.

Posted by Steve Sobol on March 13th, 2006

KoRnDragon wrote:
<Files whatever>
Redirect permanent (some URL)
</Files>

or

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

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

Funbolt.com - Entertainment portal, wallpapers, sexy celebs