Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2010
    Posts
    24
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Question Target Files that End with HTML

    Guys, I'm using the following in my .htaccess file but it's not working.

    Code:
    <FilesMatch ".(html|htm)$">
    php_value auto_prepend_file prepend.php
    </FilesMatch>
    Basically, I'm trying to prepend a file but only if the extension is html or htm. I have configured my Apache server to allow overrides and all the files are there. What is wrong with my code?

  • #2
    New Coder
    Join Date
    Dec 2010
    Posts
    24
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Never mind guys, I just found out how to do it. For reference, it's:

    <Files *.css>
    php_value auto_prepend_file prepend.php
    </Files>


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •