Support

Admin Tools

#14616 Access to subfolder with .htaccess maker

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 BigStef on Monday, 28 January 2013 08:22 CST

BigStef

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes 

I created a .htaccess file on my main site and I can't access my other domains on the same account
Custom .htaccess rules

Have I searched the tickets before posting? Yes

Have I read the documentation before posting (which pages?)? Yes
Joomla! version: (1.5.26)
PHP version: (5.2.17)
MySQL version: (5.1.66)
Host: (DigitalPacific)
Admin Tools version: (2.2.10)

Description of my issue:

I've been hacked by this Brazilians hackers. I have done a restore and install your AdminTool Pro and everything is OK now, thanks for this wonderfull tool.

Now my client use 1 other website in subfolder of my joomla. Lets call it folder1.

If i get the .htaccess generated by admintool ative, i can't get to this sub-websites with the url www.mysite.com/folder1, I have to add index.htm at the end > www.mysite.com/folder1/index.htm .

If i deactivate the .htaccess, i can get to this website with the URL www.mysite.com/folder1 without adding index.htm at the end. Where have I to add a rule in the .htaccess maker to make it work without the index.htm at the end of the URL ?

Stephan Herby PAO Production New Caledonia - Canada - France

nicholas
Akeeba Staff
Manager

Hello Stephan,

The troubleshooter page you read (https://www.akeebabackup.com/documentation/troubleshooter/atsubdomains.html) does tell you what you need to do in the last two paragraphs. That's what you have to do. Did you try it? It actually has step by step instructions.

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!

BigStef

Hi Nicholas, Thanks for answering :-)

Yes i have tried this solution already.. It works if i add the /index.htm at end of the URL but not the URL alone (www.mysite.com/folder1)... Is it maybe because it is a htm file ? I don't know where this sub-website come from, it looks old, but works with www.mysite.com/folder1 if I desable the .htaccess...

I can give you true URL if this topic is not public ? If u need it ?

Stephan Herby PAO Production New Caledonia - Canada - France

nicholas
Akeeba Staff
Manager

You must not use a URL! .htaccess Maker works with folder and file names. Using a full URL will definitely not work. OK, here's what to do, step by step:

  • determine the names of the directories where your other domains' files are stored. In your excample this is folder1
  • Go to your main site's back-end, Components, Admin Tools, .htaccess Maker
  • Scroll all the way down to the "System Protection" area
  • Find the "Allow direct access, including .php files, to these directories" text area, not the one ending in "files" one.
  • Inside the text area, go to the last line and press the Enter key. A new line starts below it. Type folder1 without anything else before or after it. Just folder1. It's .htaccess Maker's job to create the rule required to allow full access to that directory
  • Assuming that you have a static (non-PHP-based) website you will have to do some more steps
    • Find the "Front-end directories where file type exceptions are allowed" textbox.
    • Inside the text area, go to its last line and press Enter. In the new line type folder1 without anything else before or after it.
    • Below it you'll find the "Front-end file types allowed in selected directories" text area. Again, go inside it, go to the next line and press Enter. In the new line type htm
    • These steps will allow your web server to access media files under the folder1 directory no matter what
  • 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!

BigStef

Very thank you for this step by step but still not working... The first part was what I have done before this topic, assuming you meant "Server protection" and not "System protection" because there's no "Allow direct access, including .php files, to these directories" there.

I have add the exeption for htm files (your 2nd step by step) but doesn't change anything...

Any other suggestion ? (and sorry to bother you with this... Know that you have a lot request here :-)

Stephan Herby PAO Production New Caledonia - Canada - France

nicholas
Akeeba Staff
Manager

The only other workaround is adding a .htaccess inside each subdirectory you want to give direct access to with just RewriteEngine Off in them, as per the troubleshooter.

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!

BigStef

Hi Nicholas,

sorry to come back with this but I finally found a way to resolve it. Renaming the index.htm in to index.html

Even if i added this extension (htm) in the "Front-end file types allowed in selected directories" and added a .htaccess inside each subdirectory, i could finally access to my repository with the simple  www.mysite.com/folder1 address only with a html extension on my index files..

Thanks for the time spended on this topic :-)

Stephan Herby PAO Production New Caledonia - Canada - France

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!