Skip to main content

EA4 Migration Breaking htaccess Rewrite Rules?

Comments

5 comments

  • BillyS
    Does EA4 play with the httpd.conf file too? Half of the lower case rules are in that file. The site broke during the upgrade, so I didn't want to spend an hour trying to troubleshoot the problem. I really don't understand why EA4 needs to adjust the .htaccess file. Seems like a recipe for broken sites.
    0
  • BillyS
    Should I just open a ticket on this one? I really don't feel like taking my site offline just to troubleshoot if someone can explain to me how to fix the broken rules.
    0
  • cPanelMichael
    Hello, The addition of the following lines in the .htaccess file is to ensure domain validation attempts from providers such as Comodo are not blocked during the AutoSSL generation attempt:
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    However, this doesn't appear to be the cause of the problem you have reported, as you mentioned the issue persists when reverting to the previous rules. Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • BillyS
    I figured it out, so I'll post what happened in case someone else runs into this problem. I used the Include Editor to insert two lines that make this lower case work: RewriteEngine On RewriteMap lc int:tolower These were set up as a Post Virtual Host Include. Sure enough, after running the upgrade, those two line were gone. I put them back in, restarted Apache and everything seems to be working now. Without more testing, it seems like information placed in these Includes gets wiped out during the upgrade.
    0
  • cPanelMichael
    Without more testing, it seems like information placed in these Includes gets wiped out during the upgrade.

    Did you have the Post VirtualHost Include field used for a specific Apache version, or was "All Versions" selected before the migration to EasyApache 4? Also, could you verify the version of cPanel installed on the system at the time of the upgrade to EasyApache 4? Thanks.
    0

Please sign in to leave a comment.