Support

Admin Tools

#28396 .htaccess maker breaks my app from working

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 nicholas on Thursday, 14 September 2017 00:43 CDT

skyfranky
Hi

I used admin tools .htaccess maker to create a .htaccess file. but then the created file breaks my mobile app from working. maybe something stops the app accessing the API.

here is part of my API url
http://app.macaucentral.com/...

when I restored the old .htaccess file, the app is running fine again. I attached your these two file, and please tell me what part of the new .htaccess file causing the issue. how to remove them in htaccess maker so that next time I generate the file will not have the same issue?

nicholas
Akeeba Staff
Manager
We cannot help you as we do not know what your "app" does and how it works. You, on the other hand, do know and are thus better equipped to solve this issue on your own. You may need to read the general .htaccess troubleshooting page, as well as the page on finding out necessary .htaccess exceptions.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

skyfranky
I found the codes that created the issue

htaccess maker generated this part of the code breaks my app:

##### Joomla! core SEF Section -- BEGIN
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
##### Joomla! core SEF Section -- END


If I replaced it with this code, it will work.
##### Joomla! core SEF Section -- BEGIN
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|raw|ini|zip|json|file|vcf))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* index.php [L]
##### Joomla! core SEF Section -- END


so how to ensure next time htaccess maker generates the codes will be correct?

nicholas
Akeeba Staff
Manager
If you have followed the instructions I gave you in the link posted in my previous reply you would neither have to ask nor duplicate Joomla's core SEF section.

The directives which seem to break your application is the "Force index.php parsing before index.html". Disabling it removes those lines completely.

The rest of your response is basically the core Joomla! SEF section. This is a hardcoded part in the .htaccess Maker and cannot be modified. If you are absolutely certain that you need all the modifications you have posted and that you cannot simply add the directives relevant to .cpaneldcv and Comodo DCV to the "Custom .htaccess rules at the top of the file" then you should not use the .htaccess Maker.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

skyfranky
Hi

I also found the .htaccess generated by admintools blocks my payment gateway from returning payment status to my cart system. I don't know which rule causing this issue

nicholas
Akeeba Staff
Manager
All of that can be addressed by following the advice in the links I posted in my first reply.

I'm afraid that since you are not interested in following our advice to solve your issues I will have to close this ticket.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

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!