diff --git a/.htaccess b/.htaccess index e69de29..10f13ba 100644 --- a/.htaccess +++ b/.htaccess @@ -0,0 +1,15 @@ + +### SILVERSTRIPE START ### + +DirectorySlash Off + + +RewriteEngine On +RewriteBase /phpinstaller + +RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ + +RewriteCond %{REQUEST_URI} ^(.*)$ +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] +### SILVERSTRIPE END ### diff --git a/mysite/code/Page.php b/mysite/code/Page.php index b3825c1..4fb96ae 100755 --- a/mysite/code/Page.php +++ b/mysite/code/Page.php @@ -20,6 +20,7 @@ class Page_Controller extends ContentController { Requirements::themedCSS("layout"); Requirements::themedCSS("typography"); Requirements::themedCSS("form"); + } }