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:
parent
8583be040c
commit
97186c0361
|
@ -38,13 +38,21 @@ Alias {webPath} "{publicPath}"
|
||||||
|
|
||||||
EnableSendfile Off
|
EnableSendfile Off
|
||||||
|
|
||||||
RewriteEngine on
|
<IfModule mod_rewrite.c>
|
||||||
RewriteBase {webPath}/
|
RewriteEngine on
|
||||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
RewriteBase {webPath}/
|
||||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -d
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||||
RewriteRule ^.*$ - [NC,L]
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
RewriteRule ^.*$ index.php [NC,L]
|
RewriteRule ^.*$ - [NC,L]
|
||||||
|
RewriteRule ^.*$ index.php [NC,L]
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule !mod_rewrite.c>
|
||||||
|
DirectoryIndex error_norewrite.html
|
||||||
|
ErrorDocument 404 /error_norewrite.html
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
</Directory>
|
</Directory>
|
||||||
EOD;
|
EOD;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<h1>The rewrite module is not enabled</h1>
|
Loading…
Reference in New Issue