Download the PHP package dorsetdigital/silverstripe-url-rewriter without Composer
On this page you can find all versions of the php package dorsetdigital/silverstripe-url-rewriter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dorsetdigital/silverstripe-url-rewriter
More information about dorsetdigital/silverstripe-url-rewriter
Files in dorsetdigital/silverstripe-url-rewriter
Download dorsetdigital/silverstripe-url-rewriter
More information about dorsetdigital/silverstripe-url-rewriter
Files in dorsetdigital/silverstripe-url-rewriter
Vendor dorsetdigital
Package silverstripe-url-rewriter
Short Description Rewrites the URLs of a SilverStripe site
License BSD-3-Clause
Homepage https://github.com/DorsetDigital/silverstripe-url-rewriter
Package silverstripe-url-rewriter
Short Description Rewrites the URLs of a SilverStripe site
License BSD-3-Clause
Homepage https://github.com/DorsetDigital/silverstripe-url-rewriter
Keywords cdnsilverstripe
Please rate this library. Is it a good library?
Informations about the package silverstripe-url-rewriter
Silverstripe URL Rewriter
Provides a simple method of rewriting the URLs of assets. This was developed primarily for use with the SilverStripe S3 assets module, allowing a quick method of using a CloudFront distribution to serve assets instead of linking directly to the S3 bucket.
Requirements
*Silverstripe 4.x
Installation
- Install the code with
composer require dorsetdigital/silverstripe-url-rewriter
- Run a
dev/build?flush
to update your project
Usage
The module won't make any changes to your site unless you do a bit of configuration. There are a few options you can set, done in a yml file:
The options are hopefully fairly self explanatory:
rewrite_enabled
- globally enables and disables the module (default false - disabled)old_url
- the full URL you wish to rewrite (eg. https://somebucket.s3.aws.com)new_url
- the new URL you wish to use (eg. https://somedistribution.cloudfront.net)enable_in_dev
- enable the CDN in dev mode (default false)
Notes
- The module is disabled in the CMS / admin system, so rewrites do not currently happen here
- When enabled, the module will always add an HTTP header of
X-Rewrites: Enabled
to show that it's working, even if none of the other rewrite operations are carried out. If this is not present and you think it should be, ensure that you have setcdn_rewrite
to true, that you have specified thecdn_domain
in your config file and that you haveenable_in_dev
set to true if you are testing in dev mode.
All versions of silverstripe-url-rewriter with dependencies
PHP Build Version
Package Version
The package dorsetdigital/silverstripe-url-rewriter contains the following files
Loading the files please wait ....