Commit 378ae51072202db48a40126a83b40491159c8d95
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 | 40 | LimitRequestBody 0 |
| 41 | 41 | DirectoryIndex index.html index.php |
| 42 | 42 | Options none |
| 43 | +Options +ExecCGI | |
| 44 | +Options +SymLinksIfOwnerMatch | |
| 45 | +#AcceptPathInfo On | |
| 43 | 46 | |
| 44 | 47 | # |
| 45 | 48 | # If you are having uploading larger documents, adjust the 16M examples |
| ... | ... | @@ -55,20 +58,14 @@ php_value max_input_time -1 |
| 55 | 58 | php_value max_execution_time 90 |
| 56 | 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 | 61 | #<IfModule mod_rewrite.c> |
| 66 | 62 | #RewriteEngine On |
| 63 | +#RewriteBase / | |
| 67 | 64 | #RewriteCond %{REQUEST_FILENAME} !-f |
| 68 | 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 | 68 | #<IfModule mod_env.c> |
| 71 | 69 | #SetEnv kt_no_extensions yes |
| 72 | 70 | #</IfModule> |
| 73 | 71 | #</IfModule> |
| 74 | -#</IfModule> | ... | ... |