2008-03-12 08:28:11 +00:00
|
|
|
# this file is used if you configure your scuttle for nice urls
|
|
|
|
# (see $cleanurls in config.inc.php)
|
|
|
|
|
2008-04-21 08:44:44 +00:00
|
|
|
#Options +FollowSymlinks
|
|
|
|
#RewriteEngine On
|
|
|
|
#RewriteBase /
|
|
|
|
#RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
#RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
#RewriteRule ^([^/]+)/?(.*) $1.php/$2 [L]
|
2008-03-12 08:28:11 +00:00
|
|
|
|
|
|
|
# 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]
|
2008-04-21 08:44:44 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
# 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
|
2008-06-01 14:25:46 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2008-04-21 08:44:44 +00:00
|
|
|
</IfModule>
|