summaryrefslogtreecommitdiff
path: root/.htaccess
blob: cfe39b9529cd59880b418918a05b8c8d9b587fa1 (plain)
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
#####################################
# the first part of this file is used if you configure your scuttle for nice urls
# (see $cleanurls in config.inc.php)
#####################################

#Options +FollowSymlinks
#RewriteEngine On
#RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^([^/]+)/?(.*)       $1.php/$2       [L]

# If you have Scuttle in subdirectories e.g. http://www.example.com/myscuttle/links/
# then you need to comment the precedent line and remove comment of the following one
# (replace "myscuttle/links/" with your subdirectories name)

#RewriteRule ^([^/]+)/?(.*)      myscuttle/links/$1.php/$2       [L]

####

# Rewrite clean URLs onto real files
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f

#if cleanurls don't work, comment option 1 (by adding # at the beginning) and uncomment option 2:
RewriteRule ^([^/]+)/?(.*) $1.php?query=$2 [L,QSA]        #option 1
#RewriteRule ^([^/]+)/?(.*)       $1.php/$2       [L]     #option 2

</IfModule>


#####################################
# This second part is used to speed-up the application
#####################################