Support

Admin Tools

#26557 cpanel Changing htaccess File

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Saturday, 17 December 2016 17:17 CST

yaani
 I got a notice from Watchfuli that my .htaccess file had been changed.

When I did a file compare it looked like the following lines had been added in several places

RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

I changed it back to how it was the day before & notified my hosting company Rochen & asked them if they had altered the htaccess file.

They said this

"Thank you for contacting Rochen. This file was modified automatically by cPanel as a part of the new "AutoSSL" feature which was introduced in a recent release. The system automatically tried to perform domain control validation on your domain parkcherchase.com, but this ultimately failed as your site issued a redirect instead of directly serving the new file that was created (83A8EC9F95DD9448D5BD2F3153E6E57C.txt). "

I am attaching the 2 versions of the htaccess file (Nov 13 version created by Admin Tools, Nov 15 version changed by cpanel)

I don't understand why it was changed by cpanel or if I need to add those 2 lines in the htaccess maker text box so the code doesn't get removed if I run teh Admin Tools htaccess maker again.

I also found this https://features.cpanel.net/topic/ability-to-prevent-autossl-editing-htaccess-fles

But I'm afraid I don't understand all of it & what I need to do to htaccess Maker to make sure my website works correctly.

Thank you for any advice you can provide.

tampe125
Akeeba Staff
Hello,

looking at your htaccess file, they blindly added those two lines before any RewriteRule instruction.
You can try to fix it by manually allowing the 83A8EC9F95DD9448D5BD2F3153E6E57C.txt file, adding it to the exceptions.
Let me know if it does the trick.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

yaani
Hi Davide,

The contents of the 83A8EC9F95DD9448D5BD2F3153E6E57C.txt file are

c23d70278dc07db45c3439ea7d57aae0b6e827a8
comodoca.com

Does this mean I should add the 83A8EC9F95DD9448D5BD2F3153E6E57C.txt file to Admin Tools htaccess Maker Exceptions>Allow direct access to these files ? Then create a new htaccess file using htaccess Maker?

If so should I just add "83A8EC9F95DD9448D5BD2F3153E6E57C.txt" (without quotes) to teh Exceptions>Allow direct access to these files without a leading forward slash?

Thank you for your help with this.












tampe125
Akeeba Staff
Does this mean I should add the 83A8EC9F95DD9448D5BD2F3153E6E57C.txt file to Admin Tools htaccess Maker Exceptions>Allow direct access to these files ? Then create a new htaccess file using htaccess Maker?

Yes, you're right
If so should I just add "83A8EC9F95DD9448D5BD2F3153E6E57C.txt" (without quotes) to teh Exceptions>Allow direct access to these files without a leading forward slash?
Yes, that's correct

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!