The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ForceType not working

Discussion in 'General Discussion' started by ajqureshi, Jan 21, 2010.

  1. ajqureshi

    ajqureshi Registered

    Joined:
    Jan 21, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have CPanel 11.25.0-RELEASE_42404 and under one of my virtualhost, I am running a website. I have using a local .htaccess and using ForceType directive to force a file called dj type to be php; however, after 48 hours of trial and error, I have been unsuccessful:mad:. The file is not parsed as a php file. I need it to parse as a php file so that it can generate user-friendly URLs.

    I have attached my .htaccess for your review. Any help would be appreciated.

    .htaccess
    =======================
    <Files dj>
    ForceType application/x-httpd-php
    </Files>
    =======================
     
  2. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Try this directive:
    AddType application/x-httpd-php .dj
     
  3. DomineauX

    DomineauX Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    414
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Had same issue today and found that the following works:

    <Files filename>
    ForceType application/x-httpd-php5
    </Files>
     
Loading...

Share This Page