-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento 2.1 to 2.1.1 upgrade .htaccess overwrite #6419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Closed as duplicate. Additionally Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here). One of corresponding issues was already moved to forum. You can find it here. |
Since this task is the only one in series that I have found to be still open, I would like to point out that this does not only affect .htaccess. It affects all files that are placed there by magento-base module when doing composer install. So anything outlined there will be overridden in your code. And in any future case where new thing is added to that module and has the same naming as my code can potentially remove if from my site. |
@dapdx, thank you for your report. |
I found this ticket because I was looking for why Since it's essential to add themes to this file to compile .less files and there's no other way to achieve the same, I think this "feature" needs rethinking. Maybe don't do this overwrite on |
In either case, surely any file which is managed via |
Hi @TomashKhamlai. Thank you for working on this issue.
|
Keeping in mind that the script https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html#upgrade-cli-script is for upgrading to 2.3.0, I will add reproduced on 2.3-develop, because release line 2.3.x is the reason for creating this script |
@TomashKhamlai Thank you for verifying the issue. Based on the provided information internal tickets |
Seems like the only one possible solution will be switching to nginx + php-fpm, that's basically fixes all the issues as all configuration is NOT in the magento2 directory. |
I actually think it's a great feature and this probably isn't a bug. Anyway, in our deploy flow, we do something like the following, this way the
|
Hi @ihor-sviziev. Thank you for working on this issue.
|
Hi, I re-analyzed this issue again and saw that fixing this issue will not be easy, while it is too low a priority. Workarounds:
composer install ...
git checkout pub/.htaccess
|
Just wanted to point out that when using the admin to upgrade to 2.1.1 from 2.1 your .htaccess file gets overwritten. Since we use multiple store fronts our domain magrun commands were deleted so our storefronts weren't working. Not sure what other stuff people might have in their .htaccess, but just a warning.
Preconditions
Magento 2.1 upgraeing to 2.1.1 via admin panel
PHP 7
Updated(09/27/2019): Still actual in further upgrading from 2.1.1 directly to 2.3.2.
Steps to reproduce
Used admin panel to upgrade to new version
Expected result
Upgrade to new version correctly (which so far all other elements do)
Actual result
.htaccess file was overwritten causing domains for multistores to not link correctly.
The text was updated successfully, but these errors were encountered: