Skip to content

Commit

Permalink
ENHANCEMENT Removed extension specific RewriteCond from .htaccess, in…
Browse files Browse the repository at this point in the history
…stall.php and rewritetest.php to allow for broader range of dynamically handled extensions (e.g. generating GIF files through SilverStripe controllers). See #2958 (from r97791)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112091 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
sminnee committed Oct 13, 2010
1 parent 51effb7 commit dd015ff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

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]
Expand Down
1 change: 0 additions & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,6 @@ function createHtaccess() {
RewriteEngine On
$baseClause
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
Expand Down
4 changes: 0 additions & 4 deletions rewritetest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ function createHtaccess() {
RewriteEngine On
RewriteBase $base
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
Expand Down Expand Up @@ -114,8 +112,6 @@ function createHtaccessAlternative() {
RewriteEngine On
RewriteBase $base
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* $_SERVER[DOCUMENT_ROOT]/sapphire/main.php?url=%1&%{QUERY_STRING} [L]
Expand Down

0 comments on commit dd015ff

Please sign in to comment.