Commit 378ae51072202db48a40126a83b40491159c8d95

Authored by nbm
1 parent 17f0d9e3

Add setup for using mod_rewrite to handle PATH_INFO and pretty URLs.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4632 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 6 additions and 9 deletions
.htaccess
@@ -40,6 +40,9 @@ SetEnv kt_htaccess_worked yes @@ -40,6 +40,9 @@ SetEnv kt_htaccess_worked yes
40 LimitRequestBody 0 40 LimitRequestBody 0
41 DirectoryIndex index.html index.php 41 DirectoryIndex index.html index.php
42 Options none 42 Options none
  43 +Options +ExecCGI
  44 +Options +SymLinksIfOwnerMatch
  45 +#AcceptPathInfo On
43 46
44 # 47 #
45 # If you are having uploading larger documents, adjust the 16M examples 48 # If you are having uploading larger documents, adjust the 16M examples
@@ -55,20 +58,14 @@ php_value max_input_time -1 @@ -55,20 +58,14 @@ php_value max_input_time -1
55 php_value max_execution_time 90 58 php_value max_execution_time 90
56 </IfModule> 59 </IfModule>
57 60
58 -#<IfModule mod_negotiation.c>  
59 -#Options +MultiViews  
60 -#<IfModule mod_env.c>  
61 -#SetEnv kt_no_extensions yes  
62 -#</IfModule>  
63 -#</IfModule>  
64 -#<IfModule !mod_negotiation.c>  
65 #<IfModule mod_rewrite.c> 61 #<IfModule mod_rewrite.c>
66 #RewriteEngine On 62 #RewriteEngine On
  63 +#RewriteBase /
67 #RewriteCond %{REQUEST_FILENAME} !-f 64 #RewriteCond %{REQUEST_FILENAME} !-f
68 #RewriteCond %{REQUEST_FILENAME}.php -f 65 #RewriteCond %{REQUEST_FILENAME}.php -f
69 -#RewriteRule ^(.*)$ $1.php 66 +#RewriteRule !^[^/]*.php - [C]
  67 +#RewriteRule ^([^/]*)([/].+)? $1.php [E=kt_path_info:$2,E=kt_orig_file:$1.php]
70 #<IfModule mod_env.c> 68 #<IfModule mod_env.c>
71 #SetEnv kt_no_extensions yes 69 #SetEnv kt_no_extensions yes
72 #</IfModule> 70 #</IfModule>
73 #</IfModule> 71 #</IfModule>
74 -#</IfModule>