From: Brenda Wallace Date: Wed, 15 Jul 2009 10:13:50 +0000 (+1200) Subject: Check if mod_rewrite is installed before trying to use it X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=185d08282b5df141d38a88604b7d8cab00ce0cfd;p=quix0rs-gnu-social.git Check if mod_rewrite is installed before trying to use it stops those apache 500 errors when it's not installed --- diff --git a/htaccess.sample b/htaccess.sample index 634900dbf6..942e98334a 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -1,12 +1,14 @@ -RewriteEngine On + + 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] + Order allow,deny