|
1 | | - <IfModule mod_rewrite.c> |
2 | | - RewriteEngine on |
3 | | - RewriteRule ^ - [E=protossl] |
4 | | - RewriteCond %{HTTPS} on |
5 | | - RewriteRule ^ - [E=protossl:s] |
6 | | - RewriteRule "(^|/)\." - [F] |
7 | | - RewriteCond %{REQUEST_FILENAME} !-f |
8 | | - RewriteCond %{REQUEST_FILENAME} !-d |
9 | | - RewriteCond %{REQUEST_URI} !=/favicon.ico |
10 | | - RewriteRule ^ koseu.php [L] |
11 | | - </IfModule> |
12 | | - |
13 | | - <IfModule !mod_rewrite.c> |
14 | | - FallbackResource koseu.php |
15 | | - </IfModule> |
| 1 | +# |
| 2 | +# Depending on your Apache web server, you may some tweaks |
| 3 | +# |
| 4 | +# If you go to a /lessons url and see the /lessons.json data |
| 5 | +# Turn off MultiView in your Apache Configuration or add this line: |
| 6 | +# |
| 7 | +# Options -MultiView |
| 8 | +# |
| 9 | +# Some web servers need a RewriteBase after "RewriteEngine on" below |
| 10 | +# It will need to be the path on this web server for this |
| 11 | +# folder. So far I only needed this on 1and1. Here are two examples: |
| 12 | +# |
| 13 | +# RewriteBase / |
| 14 | +# RewriteBase /py4e |
| 15 | +# |
| 16 | + |
| 17 | +<IfModule mod_rewrite.c> |
| 18 | + RewriteEngine on |
| 19 | + RewriteRule ^ - [E=protossl] |
| 20 | + RewriteCond %{HTTPS} on |
| 21 | + RewriteRule ^ - [E=protossl:s] |
| 22 | + RewriteRule "(^|/)\." - [F] |
| 23 | + RewriteCond %{REQUEST_FILENAME} !-f |
| 24 | + RewriteCond %{REQUEST_FILENAME} !-d |
| 25 | + RewriteCond %{REQUEST_URI} !=/favicon.ico |
| 26 | + RewriteRule ^ koseu.php [L] |
| 27 | +</IfModule> |
| 28 | + |
| 29 | +<IfModule !mod_rewrite.c> |
| 30 | + FallbackResource koseu.php |
| 31 | +</IfModule> |
0 commit comments