-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess_example
38 lines (21 loc) · 1.14 KB
/
.htaccess_example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## CHARSET - Uncomment this and change it to your setup value if you have charset related problems
# AddDefaultCharset UTF-8
## MOD_REWRITE - Uncommend the required lines to use ClanSphere with Apache mod_rewrite
## Documentation = http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
## Uncomment the next line when symlinks are not set in Apache configuration
Options +FollowSymLinks
## Uncomment the next line to disable Multiviews (if you have negotiation errors in your log files)
#Options -Multiviews
## Uncomment the next line to enable the usage of mod_rewrite (required)
RewriteEngine on
## Uncomment the next line to inherit mod_rewrite rules set in Apache configuration
#RewriteOptions inherit
## Uncomment the next line and update the path to use the clansphere directory if you move this file
#RewriteBase /
## Uncomment this to prevent overcuttings between real directories/files and virtual ones (required)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)(.*)$ $1.php?params=$2 [NC,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)? $1 [R=404,L]