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
|
||||
|
||||
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;
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<h1>The rewrite module is not enabled</h1>
|
Loading…
Reference in New Issue