-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build fails to copy .htaccess to dist folder #4607
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
When you put it in If you want it to be in |
@filipesilva , If you think that it works can you give me the gist of your Here is my gist |
Change this bit:
to
|
Now works. Thanks!
Kudos to @filipesilva ! |
unrelated... why are files in my assets folder ending up in |
Hey @filipesilva , can you please let me know what should be the content of I tried this, but of no use:
I have set Need your guidance. |
@arun-awnics I know this may be late but this is my
But in my case, I have set Hope this helps. |
i have deployed the angular project on apache server and i have added .htaccess file in src folder but when i am refreshing the page at that time i am getting 404 error. |
@sandipsanap try with RewriteBase / |
I know this might sound silly but angular.json has two sections, one for test and one for build. So add the entries to the correct one! :-) |
I have generated the
I need to change the last line of this file |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ng build
does not copy.htaccess
todest
dir. I have tried to put.htaccess
in bothsrc
andsrc/assets
folder but in both cases.htaccess
does not appears indist
folder.Here are more details about:
OS?
Versions.
Repro steps.
The log given by the failure.
There is no log error. Errror is that I expect that file
.htaccess
is copied indist
folder.The text was updated successfully, but these errors were encountered: