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

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
userwords
Forum Members
Forum Members
Posts: 48
Joined: Mon Dec 27, 2010 12:27 am

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

Post 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.
Last edited by userwords on Tue Oct 01, 2013 6:00 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post by Rolf »

Use and rename htaccess.txt file!
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
userwords
Forum Members
Forum Members
Posts: 48
Joined: Mon Dec 27, 2010 12:27 am

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

Post 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 ::)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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 :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “[locked] Installation, Setup and Upgrade”