How to patch your htaccess file correctly in composer.json
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
3
down vote
favorite
After running composer update
my Drupal installation gets updated. But I'm tired of manually editing my .htaccess
file each time. How can I correctly patch it?
8 composer htaccess
add a comment |Â
up vote
3
down vote
favorite
After running composer update
my Drupal installation gets updated. But I'm tired of manually editing my .htaccess
file each time. How can I correctly patch it?
8 composer htaccess
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
After running composer update
my Drupal installation gets updated. But I'm tired of manually editing my .htaccess
file each time. How can I correctly patch it?
8 composer htaccess
After running composer update
my Drupal installation gets updated. But I'm tired of manually editing my .htaccess
file each time. How can I correctly patch it?
8 composer htaccess
8 composer htaccess
edited 24 mins ago
leymannx
5,85642356
5,85642356
asked 1 hour ago
Stef
506411
506411
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
In the scripts
section of your composer.json file, use the following:
"post-drupal-scaffold-cmd": [
"patch -p0 < patches/htaccess.patch"
]
(this requires "drupal-composer/drupal-scaffold" in your require
section)
Usingdrupal-composer/drupal-project
I simply added one function to itsScriptHandler.php
that always symlinks me my own.htaccess
from the composer root dir aspost-install-cmd
andpost-update-cmd
into the web root dir.
– leymannx
1 hour ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
In the scripts
section of your composer.json file, use the following:
"post-drupal-scaffold-cmd": [
"patch -p0 < patches/htaccess.patch"
]
(this requires "drupal-composer/drupal-scaffold" in your require
section)
Usingdrupal-composer/drupal-project
I simply added one function to itsScriptHandler.php
that always symlinks me my own.htaccess
from the composer root dir aspost-install-cmd
andpost-update-cmd
into the web root dir.
– leymannx
1 hour ago
add a comment |Â
up vote
3
down vote
In the scripts
section of your composer.json file, use the following:
"post-drupal-scaffold-cmd": [
"patch -p0 < patches/htaccess.patch"
]
(this requires "drupal-composer/drupal-scaffold" in your require
section)
Usingdrupal-composer/drupal-project
I simply added one function to itsScriptHandler.php
that always symlinks me my own.htaccess
from the composer root dir aspost-install-cmd
andpost-update-cmd
into the web root dir.
– leymannx
1 hour ago
add a comment |Â
up vote
3
down vote
up vote
3
down vote
In the scripts
section of your composer.json file, use the following:
"post-drupal-scaffold-cmd": [
"patch -p0 < patches/htaccess.patch"
]
(this requires "drupal-composer/drupal-scaffold" in your require
section)
In the scripts
section of your composer.json file, use the following:
"post-drupal-scaffold-cmd": [
"patch -p0 < patches/htaccess.patch"
]
(this requires "drupal-composer/drupal-scaffold" in your require
section)
answered 1 hour ago
Stef
506411
506411
Usingdrupal-composer/drupal-project
I simply added one function to itsScriptHandler.php
that always symlinks me my own.htaccess
from the composer root dir aspost-install-cmd
andpost-update-cmd
into the web root dir.
– leymannx
1 hour ago
add a comment |Â
Usingdrupal-composer/drupal-project
I simply added one function to itsScriptHandler.php
that always symlinks me my own.htaccess
from the composer root dir aspost-install-cmd
andpost-update-cmd
into the web root dir.
– leymannx
1 hour ago
Using
drupal-composer/drupal-project
I simply added one function to its ScriptHandler.php
that always symlinks me my own .htaccess
from the composer root dir as post-install-cmd
and post-update-cmd
into the web root dir.– leymannx
1 hour ago
Using
drupal-composer/drupal-project
I simply added one function to its ScriptHandler.php
that always symlinks me my own .htaccess
from the composer root dir as post-install-cmd
and post-update-cmd
into the web root dir.– leymannx
1 hour ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdrupal.stackexchange.com%2fquestions%2f271146%2fhow-to-patch-your-htaccess-file-correctly-in-composer-json%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password