mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Rewrote a nonsensical paragraph about rewriting.
This commit is contained in:
parent
40ef812861
commit
23cd824426
@ -34,12 +34,14 @@ The basic .htaccess file after installing SilverStripe look like this:
|
||||
|
||||
The `<Files>` section denies direct access to the template files from anywhere but the server itself.
|
||||
|
||||
The next section enables the rewriting engine and rewrites requests to `framework/main.php` if they meet the following
|
||||
The `<IfModule>` section enables the rewriting engine. Requests will be rewritten if they meet the following
|
||||
criteria:
|
||||
|
||||
* URI doesn't end in .gif, .jpg, .png, .css, or .js
|
||||
* The requested file doesn't exist on the filesystem `framework/main.php` is called with the REQUEST_FILENAME (%1) as the `url` parameter and also appends the original
|
||||
QUERY_STRING.
|
||||
* The requested file doesn't exist on the filesystem
|
||||
|
||||
The rewriting engine then calls `framework/main.php` with the REQUEST_FILENAME (%1) as the `url` parameter and also appends the original
|
||||
QUERY_STRING. **Example:** *"myblog/cakes?page=2"* is rewritten as *"framework/main.php?url=myblog/cakes&page=2"*.
|
||||
|
||||
See the [mod_rewrite documentation](http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html) for more information on how
|
||||
mod_rewrite works.
|
||||
|
Loading…
Reference in New Issue
Block a user