Support

Admin Tools

#10184 Adding PWeb module exception to Custom .htaccess file

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 Monday, 02 January 2012 14:08 CST

user51862
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the forum before posting? Yes
Have I read the documentation before posting (which pages?)? Yes, all of them.
Joomla! version: 1.7.3
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: 2.1.14


Description of my issue:

I recently installed the Perfect Web (PWeb) contact module. After configuring my custom .htaccess file today, the module no longer worked and I received a 403 forbidden error.

I was able to fix this by consulting the help documentation for the module. http://www.perfect-web.pl/documentations/module-ajax-popup-contact-form

Here is says if you are using Admin tools then you need to add the following to your .htaccess file:

##### Advanced server protection rules exceptions -- BEGIN
RewriteRule ^modules\/mod_pwebcontact\/ajax\.php$ - [L]

I did this manually through the file manager in cPanel and it fixed the issue, but the next time I try to make a change to my custom .htaccess file, this change will be erased. Is there a workaround for this (i.e. a way to fix it within the Custom .htaccess maker)? I couldn't find a way to add that piece of code through the Custom .htaccess maker within Admin Tools.

Thanks!

nicholas
Akeeba Staff
Manager
Their instructions are wrong and they probably wrote them when they fixed that for a client of theirs. When using .htaccess Maker you must never edit the .htaccess file manually. There's always a way to do whatever you want through the .htaccess Maker interface.

What you need to do is this:
- Log in to your site's backend
- Click on Components, Admin Tools, .htaccess Maker
- Expand the Server Protection slider
- Apeend the following to the "Allow direct access to these files" area:
modules/mod_pwebcontact/ajax.php

- Click on Save and Create .htaccess

I would appreciate it if you could also let PWeb know of the solution so that they can fix the instructions in their manual.

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!

user51862
That did the trick. Thanks for your speedy response!

Erik

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!

user51862
I should have added, I contacted the developer as requested and they have modified their documentation to reflect the appropriate approach.

nicholas
Akeeba Staff
Manager
Awesome! Thank you very much :)

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!