#30735 – htaccess and addon domains

Posted in ‘Akeeba Admin Tools for Joomla!’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 03 January 2019 22:57 CST
Hello -

I'm having a strange problem with an add-on domain that I can't figure out how to fix in AT and hope you can help with.
The website loads ok but I'm seeing a lot of file not found 404 errors with several components and plugins in both the front and back end causing odd problems with forms etc.

If I add exceptions in "Allow direct access, including .php files, to these directories" with all the components and plugins directories the errors go away but normally I shouldn't have to do that.

The document root of the add-on domain is a folder under the primary domain so I've also tried putting an exception in the Primary domains AT htaccess file for the add-on domain folder but that doesn't seem to help.

I'm sure I'm over thinking this and it's something stupid I've just missed but I've hit a wall.

Thanks for the help.
Custom Fields
Joomla! version (in x.y.z format)
3.9.1
PHP version (in x.y.z format)
7.1.25
Admin Tools version (x.y.z format)
5.20
Edited by Mobilepro on 2019-01-04 04:57
 
Friday, 04 January 2019 00:43 CST
I'm afraid you won't be able to do much. .htaccess files cascade. Apache reads the .htaccess file of the main site, then the .htaccess from the add-on site and tries to apply the combined rules. However, the protection of the main site gets in the way because of the way the core Joomla! SEF rules (also included in the .htaccess created by the .htaccess Maker) are applied by Apache in this case.

The only real solution is to move the add-on site's root to a folder outside the public_html of the main site.




Nicholas K. Dionysopoulos


Lead Developer and Director






Greek: native


English: excellent


French: basic






Please keep in mind my timezone and cultural differences when reading my replies. Thank you!






Friday, 04 January 2019 10:19 CST
Thanks for your insight on this. What was really confusing me is when I added exceptions in the add-on site htaccess Maker it shouldn't have worked if it was being restricted by the main site.

Thanks again
 
Monday, 07 January 2019 02:15 CST
Because of the way .htaccess cascading works some rules in the add-on domain will work because they are more specific than the rules on the main site. The problem is that specificity is complicated. Hence the suggestion to sidestep the problem altogether :)




Nicholas K. Dionysopoulos


Lead Developer and Director






Greek: native


English: excellent


French: basic






Please keep in mind my timezone and cultural differences when reading my replies. Thank you!






Tuesday, 08 January 2019 10:51 CST
Got it...this was a little outside of AT support so I appreciate you taking the time to help.
 
Wednesday, 09 January 2019 02:03 CST
No problem! I'm glad I could help a bit :)




Nicholas K. Dionysopoulos


Lead Developer and Director






Greek: native


English: excellent


French: basic






Please keep in mind my timezone and cultural differences when reading my replies. Thank you!






Please rate this ticket

Help us improve our support services by rating this ticket from one to five stars, according to how much you are satisfied from the handling of this ticket, one being not satisfied and five being very satisfied.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

Support policy: Read the complete support policy which is part of our Terms of Service. We kindly remind our subscribers that they have already explicitly and unconditionally accepted the Terms of Service.

Cookies Notification - Action required

This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. You can change your preference later, from the controls which will be made available to you at the bottom of every page of our site.