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
############################################ | |
# Force download of specific files | |
############################################ | |
<Files *.xls> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</Files> | |
<Files *.eps> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment |
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
RewriteRule "(^|/)\.(?!well-known\/)" - [F] |
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
# composer install (server) | |
$ composer install --no-interaction --prefer-dist --optimize-autoloader | |
# composer nuke | |
$ rm -rf vendor/ && rm composer.lock && composer clear-cache && composer update | |
# update | |
$ ./craft update all | |
# migrate |
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
$routes = array( | |
// Default routes | |
); | |
$stagingRoutes = array( | |
'<url:(?!api\/).*>' => ['template' => 'index'], | |
); | |
if (strpos(CRAFT_ENVIRONMENT, 'staging') !== false) { | |
$routes = array_merge($routes, $stagingRoutes); |
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
countries: [ | |
{ | |
label: 'Afghanistan', | |
value: 'AF', | |
default: '' | |
}, | |
{ | |
label: 'Aland Islands', | |
value: 'AX', | |
default: '' |
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
'<url:(?!api\/).*>' => ['template' => 'index'], |
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
UPDATE users SET password='$2y$13$FfVKvo1W1N5Gsba3c19r8uz.x9R5NRQgRu8jmXvOjVCStg1sKGcoW' WHERE id=1; |
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
{% header "Content-Type: application/rss+xml" %} | |
{% if not craft.app.config.general.membersOnly %} | |
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:wfw="http://wellformedweb.org/CommentAPI/" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" | |
xmlns:slash="http://purl.org/rss/1.0/modules/slash/" |
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
/** | |
* Returns the base path of the environment | |
* | |
* @type {Function} | |
* @return {String} | |
*/ | |
var path = require('path'); | |
module.exports = function (context) { | |
return path.dirname(path.relative(context.data.file.history.toString(), context.data.file.base.toString())) + '/'; |