summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-03-12 08:28:11 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-03-12 08:28:11 +0000
commitdb1dfcbff9ae28b7fa86444360d66ddab9abeb6e (patch)
tree5e74f25772638e31a47de430a4c9cfc7599720a8 /.htaccess
parentfb7d248f53b5002b63a8a91aed03c30d728ab9c9 (diff)
downloadsemanticscuttle-db1dfcbff9ae28b7fa86444360d66ddab9abeb6e.tar.gz
semanticscuttle-db1dfcbff9ae28b7fa86444360d66ddab9abeb6e.tar.bz2
Bug fix: allow cleanurls thanks to htaccess
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@65 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess16
1 files changed, 16 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..f0ee859
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,16 @@
+# this file is used if you configure your scuttle for nice urls
+# (see $cleanurls in config.inc.php)
+
+Options +FollowSymlinks
+AcceptPathInfo On
+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]