File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -142,13 +142,11 @@ enable "src/rewrites/rewrite_http_to_https.conf"
142
142
143
143
#### Adding custom modules
144
144
145
- Imagine you're passing all requests to non-existing files to your favourite web framework. The according * mod_rewrite* snippet would go like this:
145
+ Imagine you're passing all requests to non-existing files to your favourite web framework. The according
146
+ [ _ mod_dir_ ] ( https://httpd.apache.org/docs/trunk/mod/mod_dir.html#fallbackresource ) snippet would go like this:
146
147
147
148
```
148
- RewriteEngine On
149
- RewriteCond %{REQUEST_FILENAME} !-f
150
- RewriteCond %{REQUEST_FILENAME} !-d
151
- RewriteRule ^ index.php [QSA,L]
149
+ FallbackResource index.php
152
150
```
153
151
154
152
Store this snippet in a file, e.g. ** config/framework_rewrites.conf,** and add a reference in your ** htaccess.conf:**
You can’t perform that action at this time.
0 commit comments