summaryrefslogtreecommitdiff
path: root/htaccess.sample
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-07-15 22:13:50 +1200
committerCraig Andrews <candrews@integralblue.com>2009-07-21 16:37:17 -0400
commit185d08282b5df141d38a88604b7d8cab00ce0cfd (patch)
treed2296daefba4c6e20ffb547ea67177b8a11a23da /htaccess.sample
parent0a602725b1c49d246e77b24c723a65cdb0119e8e (diff)
Check if mod_rewrite is installed before trying to use it
stops those apache 500 errors when it's not installed
Diffstat (limited to 'htaccess.sample')
-rw-r--r--htaccess.sample14
1 files changed, 8 insertions, 6 deletions
diff --git a/htaccess.sample b/htaccess.sample
index 634900dbf..942e98334 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -1,12 +1,14 @@
-RewriteEngine On
+<IfModule mod_rewrite.c>
+ RewriteEngine On
-# NOTE: change this to your actual Laconica path; may be "/".
+ # NOTE: change this to your actual Laconica path; may be "/".
-RewriteBase /mublog/
+ RewriteBase /mublog/
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule (.*) index.php?p=$1 [L,QSA]
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteRule (.*) index.php?p=$1 [L,QSA]
+</IfModule>
<FilesMatch "\.(ini)">
Order allow,deny