SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist AlexC's Avatar
    Join Date
    Oct 2000
    Location
    Sheffield, UK
    Posts
    437
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ForceType Problem

    Hi,

    I am transferring a site to a new server, and am having trouble with the .htaccess file.

    I know the PHP itself is working, but whenever I access it, it gives me a ISE500 server error.

    Here is the .htaccess file

    Code:
    <FilesMatch "^categories$">
    	ForceType application/x-httpd-php
    </FilesMatch>
    <FilesMatch "^artist$">
    	ForceType application/x-httpd-php
    </FilesMatch>
    <FilesMatch "^s$">
    	ForceType application/x-httpd-php
    </FilesMatch>
    Options All -Indexes
    It works on another server i'm on, just not this one... any ideas?

    Alex
    Nearly 7 years old!

  2. #2
    SitePoint Member
    Join Date
    Jan 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .htaccess file do not support <FilesMatch> </FilesMatch> section and "Forcetype" directive. Use <Files> </Files> and "SetHandler" instead.

    Code:
    <Files "categories">
    SetHandler application/x-httpd-php
    </Files>
    
    <Files "artist">
    SetHandler application/x-httpd-php
    </Files>
    
    <Files "s">
    SetHandler application/x-httpd-php
    </Files>
    
    Options All -Indexes
    For more infomations about .htaccess, visit: http://www.netmore.net/mini_htaccess.shtml


Bookmarks

Posting Permissions

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