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 does nothing

Discussion in 'General Discussion' started by Izkabola, Apr 21, 2005.

  1. Izkabola

    Izkabola Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    156
    Hello, I have spent hours searching for an answer with no luck.

    My .htaccess file reads:
    Code:
    <Files dirit.txt> 
    ForceType application/x-httpd-php 
    </Files> 
    Inside dirit.txt, it reads:
    Code:
    <?php
    $nav = $_SERVER["REQUEST_URI"];
    $script = $_SERVER["SCRIPT_NAME"];
    $nav = ereg_replace("^$script", "", $nav);
    $vars = explode("/", $nav);
    $id = $vars[1];
    
    header("Location: http://www.domain.com/beta/?act=services");
    ?>
    
    I don't think it is a problem with my code, but how Apache is setup. Does anyone know how I can enable ForceType?

    Thank you in advanced!
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Do you have phpsuexec enabled or not? If you do, then you cannot use those directives in a .htaccess file, you have to set it up within a local php.ini
     
    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