Skip to content

Added .htaccess to concrete5 gitignore#1664

Merged
shiftkey merged 1 commit intogithub:masterfrom
littleibex:master
Mar 6, 2016
Merged

Added .htaccess to concrete5 gitignore#1664
shiftkey merged 1 commit intogithub:masterfrom
littleibex:master

Conversation

@littleibex
Copy link
Copy Markdown
Contributor

Updated concrete5 gitignore to include htaccess

@shiftkey
Copy link
Copy Markdown
Member

shiftkey commented Oct 5, 2015

@littleibex can you tell me about why this file should be excluded? Is there a specific tool that's creating this?

@littleibex
Copy link
Copy Markdown
Contributor Author

It's created when you enable pretty URLs in concrete5. The htaccess file on the server can have a lot of settings in htaccess which I believe you should not be overwritten by the local repository.

@shiftkey
Copy link
Copy Markdown
Member

shiftkey commented Oct 6, 2015

The htaccess file on the server can have a lot of settings in htaccess which I believe you should not be overwritten by the local repository.

To make sure I understand: typically the .htaccess file on the server is not in version control, and you will want whatever's there rather than whatever's created locally?

@littleibex
Copy link
Copy Markdown
Contributor Author

.htaccess file is not there initially in the project. However, after a particular setting from the CMS is enabled, the .htaccess file is created in the root of the project which then becomes a part of the repository. It's not good to have .htaccess in version control since, more than the project, it's associated to the server or machine where it is hosted.

@shiftkey
Copy link
Copy Markdown
Member

shiftkey commented Mar 6, 2016

@littleibex apologies for the delay - this all seems reasonable. Thanks!

shiftkey added a commit that referenced this pull request Mar 6, 2016
Added .htaccess to concrete5 gitignore
@shiftkey shiftkey merged commit c3f8105 into github:master Mar 6, 2016
u9E9F pushed a commit to u9E9F/gitignore that referenced this pull request Jul 8, 2017
Added .htaccess to concrete5 gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants