From eebff68f46eb156e11c699c88908974660a67e85 Mon Sep 17 00:00:00 2001 From: sminnee Date: Wed, 13 Oct 2010 02:22:49 +0000 Subject: [PATCH] ENHANCEMENT Easier installation for IIS based configurations by providing the web.config file out of the box, an inaccessible file on Apache based web servers (from r93255) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112086 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- .htaccess | 33 +++++++++++++++++++-------------- web.config | 16 ++++++++++++++++ 2 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 web.config diff --git a/.htaccess b/.htaccess index b9f890e..d0dfc7d 100644 --- a/.htaccess +++ b/.htaccess @@ -1,15 +1,20 @@ -### SILVERSTRIPE START ### - -Order deny,allow -Deny from all -Allow from 127.0.0.1 - - -RewriteEngine On - -RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$) - -RewriteCond %{REQUEST_URI} ^(.*)$ -RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] +### SILVERSTRIPE START ### + + Order deny,allow + Deny from all + Allow from 127.0.0.1 + + + + Order deny,allow + Deny from all + + +RewriteEngine On + +RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$) + +RewriteCond %{REQUEST_URI} ^(.*)$ +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] ### SILVERSTRIPE END ### \ No newline at end of file diff --git a/web.config b/web.config new file mode 100644 index 0000000..754bc72 --- /dev/null +++ b/web.config @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file