Forum Moderators: phranque

Message Too Old, No Replies

Using forcetype in multiple files through .htaccess file

         

hswaseer

1:03 pm on Jan 24, 2004 (gmt 0)

10+ Year Member



Hi guys

Instead of using the forcetype rule again and again...How should i apply the forcetype rule in my .htaccess file so that i can use it in my multiple files.

<Files soccer>
ForceType application/x-httpd-php
</Files>

jdMorgan

11:08 pm on Jan 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hswaseer,

Use <FilesMatch> instead of <Files>. With <Filesmatch>, you can use regular expressions to match multiple filenames and filetypes.

Jim