4571 Posts in 1384 Topics by 1376 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 953 Views |
-
Installing SilverStripe 2.4.3 on home.pl (Polish ISP)

17 December 2010 at 6:53am
Hello,
There is an easy way to install SilverStripe on home.pl. They use IdeaWebServer instead of Apache, so you have to make changes in .htaccess files before uploading them:
1) .htaccess (located in main folder) - replace:
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]with following lines:
RewriteCond %{REQUEST_URI} !(.gif)|(.jpg)|(.png)|(.css)|(.js)|(.php)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ sapphire/main.php?url=$1&%{QUERY_STRING} [L]RewriteCond %{REQUEST_FILENAME} index..* [NC]
RewriteRule .* sapphire/main.php?url=/ [L]2) cms/.htaccess - delete this file (IdeaWebServer's <FilesMatch> syntax is incompatibile with Apache).
Hope this helps.
s.
-
Re: Installing SilverStripe 2.4.3 on home.pl (Polish ISP)

18 April 2013 at 9:52pm Last edited: 18 April 2013 9:53pm
Hey, just to confirm this is also valid for Silverstripe 3.0.5. Replacing sapphire with framework, so a working .htaccess is:
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files><Files web.config>
Order deny,allow
Deny from all
</Files># This denies access to all yml files, since developers might include sensitive
# information in them. See the docs for work-arounds to serve some yaml files
<Files *.yml>
Order allow,deny
Deny from all
</Files>ErrorDocument 404 /assets/error-404.html
ErrorDocument 500 /assets/error-500.html<IfModule mod_alias.c>
RedirectMatch 403 /silverstripe-cache(/|$)
RedirectMatch 403 /vendor(/|$)
RedirectMatch 403 /composer\.(json|lock)
</IfModule><IfModule mod_rewrite.c>
SetEnv HTTP_MOD_REWRITE On
RewriteEngine OnRewriteCond %{REQUEST_URI} !(.gif)|(.jpg)|(.png)|(.css)|(.js)|(.php)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ framework/main.php?url=$1&%{QUERY_STRING} [L]RewriteCond %{REQUEST_FILENAME} index..* [NC]
RewriteRule .* framework/main.php?url=/ [L]</IfModule>
### SILVERSTRIPE END ###
| 953 Views | ||
|
Page:
1
|
Go to Top |

