-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
21 lines (18 loc) · 874 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This file contains Bugkiller path configuration.
# DO NOT EDIT THIS FILE UNLESS YOU HAVE A BASIC UNDERSTANDING OF APACHE CONFIGS.
# If you edit this file and do not plan to commit your changes to the official package,
# ensure to add the following line to the .gitignore file:
# .htaccess
# Prevent sneaky people from seeing your configuration.
# DO NOT REMOVE THESE LINES UNLESS YOUR BUGKILLER IS PRIVATE.
<Files "config.ini">
Require all denied
ErrorDocument 403 "The configuration file contains the database password and therefore cannot be accessed."
</Files>
# Allow using short links to bugs, e.g. example.com/1 > example.com/view.php/1.
RewriteEngine On
RewriteRule ^([0-9]+)/?$ view.php/$1 [L]
# Rewrite several short links to technical ones.
RewriteRule ^reportbug$ reportbug.php
RewriteRule ^version$ version.php
RewriteRule ^search_query$ search.php