summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-03-09 17:04:14 +0000
committerDries Buytaert <dries@buytaert.net>2003-03-09 17:04:14 +0000
commitf2c914af5b04297fccd8951f8c57c5472a70f9de (patch)
tree27c9d72de1f645b4232ed296a35410b946a0f2ad /.htaccess
parent46cbc276a678a25a81947fe4422ce184051d1ad7 (diff)
downloadbrdo-f2c914af5b04297fccd8951f8c57c5472a70f9de.tar.gz
brdo-f2c914af5b04297fccd8951f8c57c5472a70f9de.tar.bz2
- The .htaccess file will now correct the majority of the external referers
that still use the old URL scheme! Thanks Ax and Gerhard for providing a better upgrade path.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess8
1 files changed, 7 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 3db273e18..ad4c0cb59 100644
--- a/.htaccess
+++ b/.htaccess
@@ -38,10 +38,16 @@ 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
+ # Rewrite old-style URLs of the form 'module.php?mod=x':
+ RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
+ RewriteRule module.php index.php?q=%1
+ # Rewrite URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
- RewriteRule ^blog/(.*) /index.php?q=blog/$1 [R]
</IfModule>
# $Id$