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!

PHP Mod_Rewrite

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

  1. lvalics

    lvalics Active Member

    Sep 30, 2003
    Likes Received:
    Trophy Points:
    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:

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


    and should work like this

    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

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

    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??
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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