Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    168
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Try this directive:
    AddType application/x-httpd-php .dj
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. DomineauX

    DomineauX Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    423
    Likes Received:
    7
    Trophy Points:
    168
    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>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice