From 22e2c59b161c96fff4b883568596efa5b55285ef Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 18 Aug 2011 01:25:40 +0200 Subject: Rewriting rules (+testscript) and protection of system files. --- .htaccess | 7 +++++++ index.php | 12 ++++++++++-- ratatoeskr/.htaccess | 4 ++++ ratatoeskr/backend/main.php | 0 ratatoeskr/plugin_extradata/.htaccess | 4 ++++ ratatoeskr/templates/.htaccess | 4 ++++ 6 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 ratatoeskr/.htaccess create mode 100644 ratatoeskr/backend/main.php create mode 100644 ratatoeskr/plugin_extradata/.htaccess create mode 100644 ratatoeskr/templates/.htaccess diff --git a/.htaccess b/.htaccess index e69de29..22cfebf 100644 --- a/.htaccess +++ b/.htaccess @@ -0,0 +1,7 @@ +RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule ^(.+) - [PT,L] + +RewriteRule (.*) index.php/$1 [L] diff --git a/index.php b/index.php index 3eb9468..2d55787 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,15 @@ diff --git a/ratatoeskr/.htaccess b/ratatoeskr/.htaccess new file mode 100644 index 0000000..dec4e25 --- /dev/null +++ b/ratatoeskr/.htaccess @@ -0,0 +1,4 @@ + + Order Allow,Deny + Deny from all + diff --git a/ratatoeskr/backend/main.php b/ratatoeskr/backend/main.php new file mode 100644 index 0000000..e69de29 diff --git a/ratatoeskr/plugin_extradata/.htaccess b/ratatoeskr/plugin_extradata/.htaccess new file mode 100644 index 0000000..19469bf --- /dev/null +++ b/ratatoeskr/plugin_extradata/.htaccess @@ -0,0 +1,4 @@ + + Order Allow,Deny + Deny from all + diff --git a/ratatoeskr/templates/.htaccess b/ratatoeskr/templates/.htaccess new file mode 100644 index 0000000..19469bf --- /dev/null +++ b/ratatoeskr/templates/.htaccess @@ -0,0 +1,4 @@ + + Order Allow,Deny + Deny from all + -- cgit v1.2.3-70-g09d2