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.

PHP Mod_Rewrite

Discussion in 'General Discussion' started by lvalics, May 23, 2004.

  1. lvalics

    lvalics Active Member

    Joined:
    Sep 30, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,

    We have a script what we installed on many webservers, also on CPanel envir.

    What is interesting that on some servers work and on some NO.

    What we do is the following PHP file:
    <?php

    $expl = explode("/",$_SERVER["REQUEST_URI"]);
    $expl = array_reverse ($expl);
    print_r($expl);

    ?>

    and should work like this
    http://www.domain.com/product_test.php/asdasd/47/
    http://www.domain.com/product_test.php?id=47

    It is work in product_test.php?id=47 in any case, but only on some cases like product_test.php/asdasd/47/

    Any ideea why? What have one CPanel installed in Apache, and what don't have another one.
    This is happening on Apache 1.3.x

    On version 2.x Apache is like this:
    This need to be enabled on Apache httpd.conf (I'm interested how can be added fron CPanel as Apache Handler)
    <Directory "/vaw/www/html/htdocs">
    AllowOverride FileInfo Limit
    </Directory>

    And on .htaccess file is like this to made it work.
    <FilesMatch "^category.php$">
    SetHandler application/x-httpd-php
    AcceptPathInfo On
    </FilesMatch>

    Any ideea how can fixed in Apache 1.3.x and how can I enable from User CPanel as apache handler where is Apache 2??
     
Loading...

Share This Page