diff --git a/.htaccess b/.htaccess index ad4c0cb59f699b47e641d94f5baa496c9bb79370..3fbeec0186cd04eb848c0ae60b40c4fc612d6670 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