Welcome Guest, Not a member yet? Register   Sign In
How to avoid running php files using htaccess?
#4

[eluser]Daniel Moore[/eluser]
If you are referring to having your site set up like:
Code:
|-webroot
  |-index.php
  |-.htaccess
  |-system
  |-application

then you can just set up a new .htaccess file for the system and application directories. This .htaccess needs only one line:
Code:
deny from all

If your site is set up as follows:
Code:
|-system
|-application
|-webroot
  |-index.php
  |-.htaccess

it would not then be necessary to include the additional .htaccess, because your PHP files in your system and application directory would not be directly accessible in this manner.

Either way would be fine.


Messages In This Thread
How to avoid running php files using htaccess? - by El Forum - 06-08-2009, 01:43 PM
How to avoid running php files using htaccess? - by El Forum - 06-08-2009, 02:05 PM
How to avoid running php files using htaccess? - by El Forum - 06-08-2009, 03:48 PM
How to avoid running php files using htaccess? - by El Forum - 06-11-2009, 06:32 PM
How to avoid running php files using htaccess? - by El Forum - 06-18-2009, 12:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB