Support

Admin Tools

#26739 .htaccess issue or server?

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 on Saturday, 14 January 2017 17:17 CST

Dakota09
 Hi! Hoping you can help me with what I suspect is a .htaccess issue but not 100% sure. I have a Joomla site with Admin Tools as my primary account, with some HTML (non-Joomla) only sites as subdomains. They were working fine, and haven't edited in over a year (but I still do monthly backups manually of them).

Yesterday one of my customers with the old HTML site emailed me and said they could not access the home page. All pages in the site were labeled with extension .htm, except for the contact form and the form handler pages (.php). When I changed the index page to .html it worked fine.

I checked the .htacess file in the main root and it did say:

##### File execution order -- BEGIN
DirectoryIndex index.php index.html
##### File execution order -- END

and edited it to:

##### File execution order -- BEGIN
DirectoryIndex index.php index.htm
##### File execution order -- END

and the pages work fine now. However..... when trying to view the contact.php page I am getting an error of :

Forbidden

You don't have permission to access /calamusoutfitters/contact.php on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at calamusoutfitters.com Port 80

Main site is http://www.dakotawebcreations.com. Sub domain in question is http://www.calamusoutfitters.com.

I sincerely appreciate all your help and love your tools!!!

Thanks!

dlb
The .htaccess file will be inherited by all folders beneath its location. The way you have things set up, that includes your subdomains. You might want to consider setting up the subdomains beside the main site instead of underneath them to prevent this in the future.

For the short term, you can go into .htaccess Maker on your main (root) site and add that php file to the proper field so the .htaccess file allows it to be executed.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Dakota09
Thanks Dale! I thought that was what I needed to do as far as adding the php file to the .htacess, but while looking at the code I am not sure of proper location to add and the correct coding?

dlb
You should start the path at the root of the main site and go from there.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

Dakota09
Hi Dale, update for you. I got 2 of the 3 sites in question to successfully pass contact forms. But one is still popping up an error which I have looked at 5-6 times and still cannot get it to work. The coding in the .htaccess is exact for each of the sub-domans, but calamusoutfitters.com/contact.php is still showing:

Forbidden

You don't have permission to access /calamusoutfitters/contact.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at www.calamusoutfitters.com Port 80

I am sure there is something I must be missing that is right in front of my eyes but I cannot see it!

Thanks again!

dlb
I agree, your eyes may be seeing what should be there. Watch the slashes/backslashes, that can drive Windows users crazy. Double check the spelling. :-)

And a couple of other things that could be messing us up: Clear your browser cache. Some hosts cache .htaccess files and it can take up to an hour for the file to be active.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!