Support

Admin Tools

#32400 problem with htaccess generator

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 Wednesday, 04 March 2020 17:17 CST

marvays
Hi. When I save htaccess with admintools security, have problem with fots. Know you why?
I ty all setup in htaccess disabled and generate new, but not work.

Access to font at 'https://profigastro.hu/media/fef/fonts/akeeba/Akeeba-Products.woff' from origin 'https://www.profigastro.hu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Akeeba-Products.woff:1 Failed to load resource: net::ERR_FAILED
index.php?option=com_admintools&view=HtaccessMaker:1 Access to font at 'https://profigastro.hu/media/regularlabs/fonts/RegularLabs.woff' from origin 'https://www.profigastro.hu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
RegularLabs.woff:1 Failed to load resource: net::ERR_FAILED
index.php?option=com_admintools&view=HtaccessMaker:1 Access to font at 'https://profigastro.hu/media/fef/fonts/Ionicon/ionicons.woff' from origin 'https://www.profigastro.hu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
ionicons.woff:1 Failed to load resource: net::ERR_FAILED
content-automation.js:98 Object
index.php?option=com_admintools&view=HtaccessMaker:1 Access to font at 'https://profigastro.hu/media/jui/fonts/IcoMoon.woff' (redirected from 'https://www.profigastro.hu/media/jui/fonts/IcoMoon.woff') from origin 'https://www.profigastro.hu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
profigastro.hu/media/jui/fonts/IcoMoon.woff:1 Failed to load resource: net::ERR_FAILED
index.php?option=com_admintools&view=HtaccessMaker:1 Access to font at 'https://profigastro.hu/media/regularlabs/fonts/RegularLabs.ttf' from origin 'https://www.profigastro.hu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
RegularLabs.ttf:1 Failed to load resource: net::ERR_FAILED
index.php?option=com_admintools&view=HtaccessMaker:1 Access to font at 'https://profigastro.hu/media/jui/fonts/IcoMoon.ttf' (redirected from 'https://www.profigastro.hu/media/jui/fonts/IcoMoon.ttf') from origin 'https://www.profigastro.hu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
profigastro.hu/media/jui/fonts/IcoMoon.ttf:1 Failed to load resource: net::ERR_FAILED

tampe125
Akeeba Staff
Hello,

please take a look at your configuration.php file, the variable $live_site does have a value inside it?
If so please remove any value, until you have the following:
$live_site = ''


The problem you are having is caused by your redirection rules (most likely you are redirecting non-www to www or viceversa), but your $live_site variable does not have the www. part inside it.
This means that static files are loaded from the "wrong" domain and the CORS policy blocks them.
The fastest solution is to check if the $live_site variable is actually empty: it should hold a value only in very rare cases with misconfigured servers. To be honest, in 11 years working with Joomla I've never had to fill its value.

Please try it and let me know.

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!