I need to insert a response header for my homepage. My site utilizes Wordpress (which isn't terribly relevant) but the fact that Wordpress relies heavily on mod_rewrite is. The homepage gets access at
http://www.example.com/ however Wordpress rewrites the request to
http://www.example.com/index.php. I tried using a LocationMatch directive in conjunction with a Headers like this:
Code:
<LocationMatch "^/$">
Header Always Set Captain Jean-Luc
</LocationsMatch>
That doesn't work, because of all of the rewrites that occur. If I start the LocationMatch block like this it will work:
Code:
<LocationMatch "^/index.php$">
The problem is that every page created in Wordpress utilizes ^/index.php$. So, I need a means of creating response headers based off of the originally requested URI.
LocationMatch seems to apply to the finally requested URI after mod_rewrite is done with it. I need a directive like <Orignally_Requested_URI>.
Ideas?