mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
#1368 - mod_rewrite fix for some apache servers
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@41675 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4593da20ff
commit
bd1fa10ab9
17
install.php
17
install.php
@ -694,12 +694,8 @@ PHP
|
|||||||
$rewrite = <<<TEXT
|
$rewrite = <<<TEXT
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteRule \.js$ - [L]
|
|
||||||
RewriteRule \.css$ - [L]
|
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
|
||||||
RewriteRule \.png$ - [L]
|
|
||||||
RewriteRule \.jpg$ - [L]
|
|
||||||
RewriteRule \.gif$ - [L]
|
|
||||||
RewriteRule \.php$ - [L]
|
|
||||||
|
|
||||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
@ -733,13 +729,8 @@ TEXT
|
|||||||
$end= "\n### SILVERSTRIPE END ###";
|
$end= "\n### SILVERSTRIPE END ###";
|
||||||
$rewrite = <<<TEXT
|
$rewrite = <<<TEXT
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteRule \.js$ - [L]
|
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
|
||||||
RewriteRule \.css$ - [L]
|
|
||||||
RewriteRule \.png$ - [L]
|
|
||||||
RewriteRule \.jpg$ - [L]
|
|
||||||
RewriteRule \.gif$ - [L]
|
|
||||||
RewriteRule \.php$ - [L]
|
|
||||||
|
|
||||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
@ -75,12 +75,7 @@ function createHtaccess() {
|
|||||||
$rewrite = <<<TEXT
|
$rewrite = <<<TEXT
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteRule \.js$ - [L]
|
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
|
||||||
RewriteRule \.css$ - [L]
|
|
||||||
RewriteRule \.png$ - [L]
|
|
||||||
RewriteRule \.jpg$ - [L]
|
|
||||||
RewriteRule \.gif$ - [L]
|
|
||||||
RewriteRule \.php$ - [L]
|
|
||||||
|
|
||||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
@ -114,12 +109,7 @@ function createHtaccessAlternative() {
|
|||||||
$rewrite = <<<TEXT
|
$rewrite = <<<TEXT
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteRule \.js$ - [L]
|
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
|
||||||
RewriteRule \.css$ - [L]
|
|
||||||
RewriteRule \.png$ - [L]
|
|
||||||
RewriteRule \.jpg$ - [L]
|
|
||||||
RewriteRule \.gif$ - [L]
|
|
||||||
RewriteRule \.php$ - [L]
|
|
||||||
|
|
||||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
Loading…
Reference in New Issue
Block a user