Page 1 of 1

[SOLVED]Confused about this line for .htaccess in doc folder

Posted: Tue Oct 01, 2013 2:25 am
by userwords
Under cmsms 1.11.9

# To deny PHPs
<Files ~ "\.(php|php3|php4|php5|phtml|pl|cgi|txt|pdf)$">
order deny,allow
deny from all
</Files>

As your content url show no more any file extension with custom urls it makes sense to put this lines, that i understand forbids access to any page ending in those file extensions.

But it got me freezed until i found i did copy it to my htaccess per request in the documentation, when i tried to access admin page and could not, as login page ends in login.php and got acces forbidden error.

So i ask myself if im missing another way to acces admin login, or not understanding the purpose of those lines.

Re: Confused about this line for .htaccess in doc folder

Posted: Tue Oct 01, 2013 4:23 am
by Rolf
Use and rename htaccess.txt file!

Re: Confused about this line for .htaccess in doc folder

Posted: Tue Oct 01, 2013 5:59 pm
by userwords
Rolf wrote:Use and rename htaccess.txt file!
lol at first i stared at your reply wide open eyes like:

This guy is making some deep zen statement i cannot even grasp.

Then spark in my mind and go to ftp to find that there is indeed a htaccess.txt that was the one i was supposed to use ::)

Re: Confused about this line for .htaccess in doc folder

Posted: Tue Oct 01, 2013 6:31 pm
by Rolf
userwords wrote:This guy is making some deep zen statement i cannot even grasp.
LOL, I often reply from my mobile phone, so I don't make long sentences ;)
Glad it helped!

Thanks for adding [solved] to the title.

Rolf :)