Webserver\Apache2: show hint with no mod_rewrite

This is yet unstyled, but still far better than 500

fixes #7643
This commit is contained in:
Thomas Gelf 2014-11-11 22:02:40 +01:00
parent 8583be040c
commit 97186c0361
2 changed files with 16 additions and 7 deletions

View File

@ -38,13 +38,21 @@ Alias {webPath} "{publicPath}"
EnableSendfile Off
RewriteEngine on
RewriteBase {webPath}/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase {webPath}/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
<IfModule !mod_rewrite.c>
DirectoryIndex error_norewrite.html
ErrorDocument 404 /error_norewrite.html
</IfModule>
</Directory>
EOD;

View File

@ -0,0 +1 @@
<h1>The rewrite module is not enabled</h1>