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.

PHP5 cgi Suexec htaccess rewrite issue

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

  1. shaunmza

    shaunmza Registered

    Joined:
    Sep 29, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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 http://sitename.com/ad/123-abcde/

    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?

    Thanks
     
Loading...

Share This Page