Forum Moderators: coopster

Message Too Old, No Replies

<FilesMatch> problem

         

leifwessman

9:48 am on Sep 5, 2003 (gmt 0)

10+ Year Member




When the user types www.domain.com/book-<10-chars> I would like the specific php-page "book" to load. I've tried <FilesMatch> direcitve in the .htaccess file:

<FilesMatch "^book-\d{9}(\d¦X)$">
ForceType application/x-httpd-php
</FilesMatch>

but it doesn't work. I think the computer thinks that there is a file named "book-54353454X", but the filename is only "book" the rest is depending on the book (dynamic).

What am I doing wrong here?

Nick_W

9:57 am on Sep 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just do

<Files yourfile>
....
</Files>

Works for me! ;)

Nick