-
Notifications
You must be signed in to change notification settings - Fork 24
/
.htaccess
32 lines (30 loc) · 900 Bytes
/
.htaccess
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
#
# Depending on your Apache web server, you may some tweaks
#
# If you go to a /lessons url and see the /lessons.json data
# Turn off MultiView in your Apache Configuration or add this line:
#
# Options -MultiView
#
# Some web servers need a RewriteBase after "RewriteEngine on" below
# It will need to be the path on this web server for this
# folder. So far I only needed this on 1and1. Here are two examples:
#
# RewriteBase /
# RewriteBase /py4e
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^ - [E=protossl]
RewriteCond %{HTTPS} on
RewriteRule ^ - [E=protossl:s]
RewriteRule "(^|/)\." - [F]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ koseu.php [L]
RedirectMatch 404 /\.git
</IfModule>
<IfModule !mod_rewrite.c>
FallbackResource koseu.php
</IfModule>