From b2156f92bcf25ceb760daf1dcdc0ae78f31950b8 Mon Sep 17 00:00:00 2001 From: aoneil Date: Thu, 10 Jan 2008 23:40:26 +0000 Subject: [PATCH] #1874 - generated .htaccess lacks "Rewritebase" git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@47868 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 20 ++++++++------------ rewritetest.php | 17 +++++++---------- 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/install.php b/install.php index 2e92ea3..b74d661 100644 --- a/install.php +++ b/install.php @@ -737,10 +737,12 @@ PHP function createHtaccess() { $start = "### SILVERSTRIPE START ###\n"; - $end= "\n### SILVERSTRIPE END ###"; + $end = "\n### SILVERSTRIPE END ###"; + $base = dirname($_SERVER['SCRIPT_NAME']); + $rewrite = <<