trying to set Vary header

Discussion in 'Apache' started by dethfire, Dec 19, 2013.

  1. #1
    mod_header is installed and I put this in my htaccess but it doesn't change the header. any ideas?

    <IfModule mod_headers.c>
    <FilesMatch "\.(htm|html|php)$">
    Header append Vary: User-Agent
    </FilesMatch>
    </IfModule>
     
    dethfire, Dec 19, 2013 IP
  2. Johnnt Nguyen

    Johnnt Nguyen Member

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #2
    You need using php for set or view your headers you want!

    Example:
    <?php
        @session_start();
        header('User-Agent: Anything you want');
    ?>
    PHP:
     
    Johnnt Nguyen, Jan 22, 2014 IP