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!

PHP5 cgi Suexec htaccess rewrite issue

Discussion in 'General Discussion' started by shaunmza, Sep 29, 2011.

  1. shaunmza

    shaunmza Registered

    Sep 29, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I am trying to get my website to run with php5 as a cgi abd Suexec enabled

    When I enable this however, certain .htaccess rules break and I cannot figure out why. These work currently with the PHP 5 handler set to dso

    Example of url

    rewrite rule

    RewriteEngine on
    RewriteBase /

    RewriteRule ^ad/([0-9]+)(.*)$ ./index.php/ads/ads/action/viewAd/frmAdsID/$1/adTitle/$2 [L]

    When the php 5 handler is set to cgi, the above url displays my home page, and not the page it should.

    Any suggestions?


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