/
.htaccess
executable file
·49 lines (41 loc) · 1.53 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
####################################################################
# Sitellite Content Server
# http://www.sitellite.org/
#
# Copyright (c) 2001-2003 SIMIAN systems Inc.
#
# This software is released under the Simian Open License.
# Please see the accompanying file docs/LICENSE for licensing
# details!
####################################################################
# These directives are necessary in order to tell Apache to treat
# the file 'index' as a PHP script. Avoiding the .php extension
# has some benefits, as some search engines don't parse .php files.
# Otherwise, you can simply rename this file with a .php extension
# and it should work fine with little or no modification.
# Make sure PATH_INFO is available
<IfDefine APACHE2>
AcceptPathInfo On
</IfDefine>
# Let Apache know that 'index' is really a PHP script in disguise.
<Files index>
ForceType application/x-httpd-php
</Files>
# Let Apache know that 'sitellite' is also a PHP script in disguise.
<Files sitellite>
ForceType application/x-httpd-php
</Files>
# Make SCS the directory index handler (instead of index.html or index.php).
DirectoryIndex index index.html index.php
# Instruct Apache to treat XT templates as HTML files upon direct access.
# Useful for previewing.
AddType text/html .tpl
# Short tags are bad.
php_flag short_open_tag off
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .* - [L]
RewriteRule ^(.+)$ index?_rewrite_sticky=$1 [QSA,L]
</IfModule>