Support

Admin Tools

#13596 POST request

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, 19 September 2012 10:06 CDT

amorim
Joomla! version: (latest 2.5.7)
Admin Tools version: (latest)

Hi Nicholas,

I have a webshop (magento) in a subdirectory of my site: www.site.com/shop/language

My payment provider has changed their software and now the shop must connect with it via a POST request. I can't make the connection and we have searched everywhere.

The admintools generated .htaccess file for the site (www.site.com) has this line:

RewriteCond %{THE_REQUEST} !^POST

Is this stopping the shop from connecting with the payment provider?
Should I comment this out?
And am I without protection if I do this?
Can I write an exception for this provider's website only?
And how should the code look like?

Thanks a lot in advance.

Best

Izai

nicholas
Akeeba Staff
Manager
The line you mention is irrelevant. It is part of a three lines rule which redirects index.php to the site's root unless it's a POST request. What you need to do is to add your Magento installation's directory into the list of .htaccess Maker's directories where direct access to all files (including .php) is allowed. This turns off all .htaccess protection for this non-Joomla! directory. From that point the .htaccess generated by Admin Tools has no effect on your Magento installation.

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!

amorim
Thanks, Nicholas.

Since I'm not an expert, just to be sure, it's here, right?

##### Advanced server protection rules exceptions -- BEGIN
RewriteRule ^administrator\/components\/com_akeeba\/restore\.php$ - [L]
RewriteRule ^administrator\/components\/com_admintools\/restore\.php$ - [L]
RewriteRule ^templates\/your_template_name_here/ - [L]

And I should add: (if the directory where the shop is located is called "magentoshop")
RewriteRule ^magentoshop/ - [L]

Is that correct?

Thanks

Izai

nicholas
Akeeba Staff
Manager
No, if you are using the .htaccess Maker feature of Admin Tools you are not supposed to edit the .htaccess file directly. I mean, that's why you have that feature, otherwise you would be using my free Master .htaccess and customise it manually. Just go to Admin Tools, .htaccess Maker, find the "Allow direct access, including .php files, to these directories" text area and add
magentoshop
Then 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!

amorim
Got it! Thanks! Closing ticket.

nicholas
Akeeba Staff
Manager
You're welcome!

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!