htaccess appears to be not working.

Discussion in 'Apache' started by danzor, Apr 7, 2006.

  1. #1
    it appears that htaccess files don't like my site. i have the following in a htaccess file:
    but when i load up index.php or any subsequent page, i get a 500 internal server error. strange, i thought, as the code should work. i uploaded a blank .htaccess file and the same problem ocurred.

    i did some research on "enabling" htaccess files, and came down to this section of the httpd.conf file:
    is there anything i should change there to permit htaccess files?

    also, i use virtualhosts, so should i set the options followsymlinks and such in each virtualhost container, or will each virtualhost inherit the setting from the <directory> container?

    server is running apache2.
     
    danzor, Apr 7, 2006 IP
  2. roseplant

    roseplant Peon

    Messages:
    253
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    A 500 internal server error usually occurs when there is an error in htaccess or it can't be read. Are the permissions set OK?

    Try making a very simple access file first and seeing if that works. For example, a 301 redirect for yoursite.com:

     
    roseplant, Apr 7, 2006 IP
  3. SpeedyDomainRegistration

    SpeedyDomainRegistration Peon

    Messages:
    170
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Add the following at the top of htaccess file.

    Options +SymLinksIfOwnerMatch
    Code (markup):