Support

Admin Tools

#10152 .htaccess cuts off image links in RedShop

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 Wednesday, 14 December 2011 10:51 CST

user11823
Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the forum before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 1.7.3
PHP version: 5.2.17
MySQL version: 5.0.92-community
Admin Tools version: 2.1.14

Description of my issue:

I have created and published a .htaccess file using AdinTools default settings. It seemed to work fine, but nbow I have realized that the component RedShop's product and category images are blocked (are not displayed) for some reason. I have removed the .htaccess file and everything is back to normal. What setting in .htaccess could it be that I have to adjust?

Thanks in advance. Your advise is much appreciated.

user11823
Just to clarify my previous post: What adjustments to the .htaccess file must be done for the images to reappear without comprimising security.

Cheers!

nicholas
Akeeba Staff
Manager
Hi!

The solution is actually in the troubleshooter page for .htaccess-related issues. If you follow these steps to the letter you will be able to see exactly which exception you need to add to the .htaccess Maker to let RedShop work trouble-free on your site :)

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!

user11823
Thanks for your prompt reply. Is it this instruction you are referring to:

"There was a broken image icon next to the Security Code. This is where a CAPTCHA should display - but only for Registered users. Hm... Why doesn't it get displayed? Time to use the Developer Tools in the browser, again.

There is a captcha15.php file not loading. Right. Where is it located? Clicking on the filename in the console allows us to figure it out.

So there it is! components/com_uddeim/captcha15.php. Add it to the Allow direct access to these files exceptions list, generate a new .htaccess and that's it!"

nicholas
Akeeba Staff
Manager
Not a specific paragraph, the whole text. The idea is open your sites, look at the Network panel of Developer Tools and see what is giving you the 403. If it's a PHP file, add it to the allowed files exception box. If it's a lot of non-PHP files on the same directory, add them to the allowed files in these directories (but not .php files) box. And so on.

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!

user11823
Sorry for being such a pest, but let's see if I follow.

a) I am not getting a 403. The images are just not displayed. Instead the image description texts are displayed.

b) The images are all placed in subdirectories to "components/com_redshop/assets/images. I have added that path to these directories including the subdirectories (../product) without initial or trailing slashes to "Allow direct access, except .php files". Shuldn't that point to the correct directories and consequently display the images? Or am I doing it wrong?

nicholas
Akeeba Staff
Manager
Can you paste me a link to the problem page? It'll be much faster than trying to figure out what each one of us doesn't explain to the other in a way he can understand ;)

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!

user11823
Thanks. Absolutely, here it is:

http://anotherproject.se/textile17/index.php/bestaellning/bestaell-tester/12/397/dun-o-fjader

(With the .htaccess file published.)

nicholas
Akeeba Staff
Manager
OK, mystery solved. You didn't really follow the instructions. If you had opened the developer tools, you would see that the following URL throws a 403: http://anotherproject.se/textile17/components/com_redshop/helpers/thumb.php?filename=product/1318745094_bildsaknas.jpg&newxsize=100&newysize=0&swap=0

Therefore, in the allow direct access to these files you have to add:
components/com_redshop/helpers/thumb.php
then click on Save and Create .htaccess to apply the change.

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!

user11823
I am truly sorry for my ignorance. Lesson learned. Thanks!

nicholas
Akeeba Staff
Manager
No problem! It's often very hand to explain something in writing. Been there! Well, I guess that now you learnt one more trick you can use to debug your sites :)

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!