/
sample_htaccess
50 lines (42 loc) · 1.4 KB
/
sample_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
50
######### Ultralite .htaccess Code
# Generated on: August 4, 2009
#
# Rename this file to ".htaccess" if you wish to use clean URLs.
# FollowSymLinks is required for mod_rewrite to function properly.
# -Indexes is optional, but prevents people from seeing all of the
# files in a directory, which adds a little extra security.
Options +FollowSymLinks -Indexes
# php_flag display_errors on
# php_value error_reporting 8191
<IfModule mod_rewrite.c>
# Enable mod_rewrite:
RewriteEngine On
######### Rewrite Base
#
# On some servers it's very important that you manually define
# which folder contains Ultralite.
#
# If you have Ultralite installed in your main directory,
# set the RewriteBase to "/", as shown in the example below:
#
# http://example.com/
# ^Your Base
# RewriteBase /
#
# Alternatively, if you have Ultralite in its own sub-folder,
# You will need to specify that sub-folder as the RewriteBase.
#
# http://example.com/photoblog/
# ^Your Base
# RewriteBase /photoblog/
#
# Please specify the RewriteBase below:
RewriteBase /ultralite
# Added Security, block people from directly accessing the
# SQLite database, or other protected files:
RewriteRule (application/.*|\.(sqlite3|ini|db)?(\.php)?|\.htaccess)$ - [F,L]
# Clean url rewriting
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
</IfModule>