Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vapor): use www as the root domain
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Redirect "www" To The Root Domain | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When this option is enabled, Vapor will redirect requests to the "www" | ||
| subdomain to the application's root domain. When this option is not | ||
| enabled, Vapor redirects your root domain to the "www" subdomain. | ||
| | ||
*/ | ||
|
||
'redirect_to_root' => false, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Redirect robots.txt | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When this option is enabled, Vapor will redirect requests for your | ||
| application's "robots.txt" file to the location of the S3 asset | ||
| bucket or CloudFront's asset URL instead of serving directly. | ||
| | ||
*/ | ||
|
||
'redirect_robots_txt' => true, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Servable Assets | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you can configure list of public assets that should be servable | ||
| from your application's domain instead of only being servable via | ||
| the public S3 "asset" bucket or the AWS CloudFront CDN network. | ||
| | ||
*/ | ||
|
||
'serve_assets' => [ | ||
// | ||
], | ||
|
||
]; |