Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
220da822
Commit
220da822
authored
Jan 13, 2019
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove .htaccess file from repository and ignore it in .gitignore
parent
9cce1605
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
.gitignore
.gitignore
+6
-3
.htaccess-example
.htaccess-example
+12
-7
No files found.
.gitignore
View file @
220da822
# Ignore config file in development
qa-config.php
qa-cache/*/
# Ignore Q2A config file and .htaccess in development
/qa-config.php
/.htaccess
# Ignore cached files
/qa-cache/*/
# Other files
.DS_Store
...
...
.htaccess
→
.htaccess
-example
View file @
220da822
# In order for the web server to process this file it must be renamed to ".htaccess"
Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine
On
#RewriteBase /
RewriteCond
%{REQUEST_URI} ^(.*)//(.*)$
RewriteRule
. %1/%2 [R=301,L]
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment