Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-18-2013, 09:31 AM   PM User | #1
zaltek
New Coder

 
Join Date: Dec 2010
Posts: 24
Thanks: 7
Thanked 0 Times in 0 Posts
zaltek is an unknown quantity at this point
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?
zaltek is offline   Reply With Quote
Old 01-18-2013, 10:03 AM   PM User | #2
zaltek
New Coder

 
Join Date: Dec 2010
Posts: 24
Thanks: 7
Thanked 0 Times in 0 Posts
zaltek is an unknown quantity at this point
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>
zaltek is offline   Reply With Quote
Reply

Bookmarks

Tags
end, files, html, target

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:29 AM.


Advertisement
Log in to turn off these ads.