Blame view

doc/platform/apache/01 Permanent.txt 707 Bytes
d1f8bd40   Alexey Boroda   first commit
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
  # Mod_Autoindex
  <IfModule mod_autoindex.c>
    # Çàáîðîíÿºìî ïåðåãëÿä âì³ñòó ïàïîê
  	Options -Indexes
  </IfModule>
  
  # Mod_Rewrite
  <IfModule mod_rewrite.c>
  	RewriteEngine On
      # Redirect index to Root
      RewriteCond %{THE_REQUEST} ^.*/index\.php 
      RewriteRule ^(.*)index.php$ /$1 [R=301,L] 
      # Redirect many / to one
      RewriteCond %{THE_REQUEST} //
      RewriteRule .* /$0 [R=301,L]
  </IfModule>
  
  <IfModule mod_rewrite.c>
    Options +FollowSymlinks
    # Âìèêàºìî mod_rewrite
    RewriteEngine On
  
    # ßêùî öå ïàïêà ÷è ôàéë, â³äêðèâàºìî ¿¿/éîãî
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Ó ³íøîìó âèïàäêó ïåðåíàïðàâëÿºìî äî index.php
    RewriteRule . index.php
  </IfModule>