Browse Source

renamed .htaccess to .htaccess-dist and ignored .htaccess afterwards (#5428)

* renamed .htaccess to .htaccess-dist and ignored .htaccess afterwards. This
allows local changes to it without having a dirty checkout directory.

Signed-off-by: Roland Häder <roland@mxchange.org>

* Some fixes:
- removed non-neutral words
- added examples for Linux/Windows

* Better documentation and added note about **not** renaming the file.

Signed-off-by: Roland Häder <roland@mxchange.org>
tags/2018.09
Roland Häder 1 year ago
parent
commit
6da47936c6
3 changed files with 14 additions and 1 deletions
  1. 4
    1
      .gitignore
  2. 0
    0
      .htaccess-dist
  3. 10
    0
      doc/Install.md

+ 4
- 1
.gitignore View File

@@ -65,4 +65,7 @@ venv/
65 65
 
66 66
 #ignore addons directory
67 67
 /addons
68
-/addon
68
+/addon
69
+
70
+#ignore .htaccess
71
+.htaccess

.htaccess → .htaccess-dist View File


+ 10
- 0
doc/Install.md View File

@@ -135,6 +135,16 @@ For more information during the installation, you can use this command line opti
135 135
 
136 136
     bin/console autoinstall -v
137 137
 
138
+### Prepare .htaccess file
139
+
140
+Copy .htaccess-dist to .htaccess (be careful under Windows) to have working mod-rewrite again. If you have installed Friendica into a sub directory, like /friendica/ set this path in RewriteBase accordingly.
141
+
142
+Example:
143
+
144
+    cp .htacces-dist .htaccess
145
+
146
+*Note*: Do **not** rename the .htaccess-dist file as it is tracked by GIT and renaming will cause a dirty working directory.
147
+
138 148
 ### Set up the worker
139 149
 
140 150
 Set up a cron job or scheduled task to run the worker once every 5-10 minutes in order to perform background processing.

Loading…
Cancel
Save