summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-03-11 12:57:13 +0000
committerDries Buytaert <dries@buytaert.net>2003-03-11 12:57:13 +0000
commit07bb678662e1686b1f966194324c5caa1b14c963 (patch)
tree1b9b1472aa2b4a63410cacbcd374d421d1b902b6 /.htaccess
parent7c63dbccc837624f93a0a13037a09e14d0474cdd (diff)
downloadbrdo-07bb678662e1686b1f966194324c5caa1b14c963.tar.gz
brdo-07bb678662e1686b1f966194324c5caa1b14c963.tar.bz2
- Some .htaccess file fixes/improvements. Thanks Ax.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess15
1 files changed, 11 insertions, 4 deletions
diff --git a/.htaccess b/.htaccess
index ad4c0cb59..3fbeec018 100644
--- a/.htaccess
+++ b/.htaccess
@@ -38,12 +38,19 @@ ErrorDocument 500 /error.php
# Various rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
+
# Rewrite old-style URLS of the form 'node.php?id=x':
- RewriteCond %{QUERY_STRING} ^id=([^&]+)$
- RewriteRule node.php index.php?q=node/view/%1
+ #RewriteCond %{REQUEST_FILENAME} !-f
+ #RewriteCond %{REQUEST_FILENAME} !-d
+ #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
+ #RewriteRule node.php index.php?q=node/view/%1 [L]
+
# Rewrite old-style URLs of the form 'module.php?mod=x':
- RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
- RewriteRule module.php index.php?q=%1
+ #RewriteCond %{REQUEST_FILENAME} !-f
+ #RewriteCond %{REQUEST_FILENAME} !-d
+ #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
+ #RewriteRule module.php index.php?q=%1 [L]
+
# Rewrite URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d