Skip to content

Commit 220da82

Browse files
committed
Remove .htaccess file from repository and ignore it in .gitignore
1 parent 9cce160 commit 220da82

3 files changed

Lines changed: 22 additions & 14 deletions

File tree

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# Ignore config file in development
2-
qa-config.php
3-
qa-cache/*/
1+
# Ignore Q2A config file and .htaccess in development
2+
/qa-config.php
3+
/.htaccess
4+
5+
# Ignore cached files
6+
/qa-cache/*/
47

58
# Other files
69
.DS_Store

.htaccess

Lines changed: 0 additions & 11 deletions
This file was deleted.

.htaccess-example

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# In order for the web server to process this file it must be renamed to ".htaccess"
2+
3+
Options -Indexes
4+
DirectoryIndex index.php
5+
6+
<IfModule mod_rewrite.c>
7+
RewriteEngine On
8+
#RewriteBase /
9+
10+
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
11+
RewriteRule . %1/%2 [R=301,L]
12+
13+
RewriteCond %{REQUEST_FILENAME} !-f
14+
RewriteCond %{REQUEST_FILENAME} !-d
15+
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
16+
</IfModule>

0 commit comments

Comments
 (0)