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.

cPanel update broke .htaccess

Discussion in 'General Discussion' started by xdan, Jul 13, 2017.

  1. xdan

    xdan Member

    Joined:
    Mar 30, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    51
    Some sort of cpanel update happened last night. The data center does not think it was a version change, just some sort of automatic update?? We are using cPanel & WHM 64.0 (build 31)

    the update broke all sites.

    everyone is seeing this:

    403
    Forbidden
    You don't have permission to access / on this server.

    all sites have .htaccess in public_html routing them to public_html/site/

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /site/index.php [L]

    this worked from somewhere mid 2007 until roughly 3am july 13 2017

    so now what we have to do to get around this error looks like this:

    RewriteCond %{REQUEST_URI} ^/$
    RewriteRule ^(.*)$ /site/$1 [L]

    any ideas why this change in syntax was required?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @xdan,

    Could you open a support ticket using the link in my signature so we can take a closer look at your system to determine what caused this issue?

    Thank you.
     
  3. xdan

    xdan Member

    Joined:
    Mar 30, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    51
    I stepped through the ticket creation system on our server and created a ticket for cpanel. The number is 8714051
     
  4. camilb

    camilb Registered

    Joined:
    Jul 18, 2013
    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    In my case this was to the newly introduced option "Optimize .htaccess (AllowOverride) [?]" in Apache Global Configuration. Disabled this option and everything back to normal.
     
    cPanelMichael likes this.
Loading...

Share This Page