aboutsummaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-03 10:39:01 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-03 10:39:01 +0000
commit5402e624e249c19a4b1424a6802103752c85a31e (patch)
tree04fbdb25e46afe71064a66b2dba5016aa9028fb0 /.htaccess
parent91e0dfacbfd94934f87c00349c0f03e586af9e84 (diff)
downloadsemanticscuttle-5402e624e249c19a4b1424a6802103752c85a31e.tar.gz
semanticscuttle-5402e624e249c19a4b1424a6802103752c85a31e.tar.bz2
Bug fix: correct clean url behavior
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@245 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess23
1 files changed, 1 insertions, 22 deletions
diff --git a/.htaccess b/.htaccess
index cfe39b9..27fd434 100644
--- a/.htaccess
+++ b/.htaccess
@@ -3,34 +3,13 @@
# (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
-
+RewriteRule ^([^/.]+)/?(.*)$ $1.php/$2 [QSA,L]
</IfModule>