Support

Admin Tools

#12654 Problem with spaces in file names after .htaccess creation

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 Friday, 15 June 2012 15:19 CDT

ARTIFIEDWEB
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? Partially
Have I read the documentation before posting (which pages?)? Partially
Joomla! version: 2.5.4
PHP version: 5.3.5
MySQL version: 5.0.95
Host: Liquidweb
Admin Tools version: 2.2.6

Description of my issue:
After the creation of .htaccess file through admin tools, the files that have spaces in their names or belong in a folder which has a space in its name do not appear.
In joomla global configuration, SEF and unicode aliases are enabled.
You can see working and non-working .htaccess files in the attached zipped folder
.htaccess file is working (was created by joomla)
.htaccess.newadmintools is having the problem mentioned above.

Thank you in advance for your quickest response.
I would be glad to give you permission to access my joomla site (My skype name is iRescue.gr).
Best Regards,
George Angelopoulos

nicholas
Akeeba Staff
Manager
Hi George,

Can you give me a few example URLs which are blocked after applying the .htaccess?

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!

nicholas
Akeeba Staff
Manager
The only issues I can see are Javascript errors unrelated to Admin Tools, e.g.
Unsafe JavaScript attempt to access frame with URL http://kaissanet.gr/index.php/%CE%B5%CE%BA%CE%B4%CE%B7%CE%BB%CF%8E%CF%83%CE%B5%CE%B9%CF%82-%CE%BA%CE%B1%CE%B9-%CF%84%CE%BF%CF%85%CF%81%CE%BD%CE%BF%CF%85%CE%AC/402-wmc-qualifier-report-%CE%B8%CE%B5%CF%83-%CE%BD%CE%AF%CE%BA%CE%B7-2 from frame with URL http://youtube.com/embed/UrPWzwVq6eU?rel=0. Domains, protocols and ports must match.

Uncaught SyntaxError: Unexpected token do 402-wmc-qualifier-report-%CE%B8%CE%B5%CF%83-%CE%BD%CE%AF%CE%BA%CE%B7-2:262

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!

ARTIFIEDWEB
Do you want me to enable the .htaccess file that admin tools generated so that you can check it live?

nicholas
Akeeba Staff
Manager
Yes, of course. It's the only way to see what is being blocked and why.

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!

ARTIFIEDWEB
Can you please check again now?

nicholas
Akeeba Staff
Manager
OK, I see what you mean. However your problem is not the space in the name, it's the file extension which is .JPG (all caps). Just go to Admin Tools, .htaccess Maker, Server Protection and find the "Front-end file types allowed in selected directories". Append
JPG
JPEG

to the list. Remember, as far as your web server is concerned, abc.JPG, abc.Jpg, abc.jpg and ABC.JPG are four different files. As a result, all file extensions on that list are case sensitive.

After adding the JPG and JPEG extensions to the list, click on Save and Create .htaccess.

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!

ARTIFIEDWEB
Ok, I understand! Thank you very very much! I will try it ASAP and get back to you!

ARTIFIEDWEB
Worked like a charm! Thank you very much!
BTW I was a big fan of your joomladay presentation, but did not have the ability to watch the full length of it.
Can't wait till the video is uploaded somewhere.

nicholas
Akeeba Staff
Manager
You're welcome!

The J! Day presentation is going to be published on the joomladay.gr site within the next few weeks. AFAIK there are too many hours of video which have to be edited and uploaded before we can see them on the 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!

ARTIFIEDWEB
I have another problem, I can connect it chronologically with the creation of the .htaccess file but I am not sure it is the one to blame. I searched but I didn't find a solution yet. JCE Editor has a button named Visual Control Characters On/Off. It stopped working properly around the time I enabled admin tools .htaccess file. Can you think of any way they may be connected?

nicholas
Akeeba Staff
Manager
You can always try replacing the contents of your .htaccess file with those of a stock Joomla! htaccess.txt. Does that have any effect?

Edit: I mean, does it have any effect to your JCE issues? The fact that generating the .htaccess blocked your images was because the .htaccess was cutting off access to files with a .JPG (uppercase) extension. That's why I told you to perform the workaround above.

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!

ARTIFIEDWEB
Nevermind... after so many hours of work my brain stopped working and was looking for the easy solution (to ask someone else). I restored the original .htaccess file and the problem is still there so it has nothing to do with the .htaccess file. Sorry to bother you so late in the evening... My sincere apologies

nicholas
Akeeba Staff
Manager
No problem :)

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!