[SOLVED]Confused about this line for .htaccess in doc folder
Posted: Tue Oct 01, 2013 2:25 am
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.
# 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.