From 378ae51072202db48a40126a83b40491159c8d95 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 23 Jan 2006 11:32:57 +0000 Subject: [PATCH] Add setup for using mod_rewrite to handle PATH_INFO and pretty URLs. --- .htaccess | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.htaccess b/.htaccess index 240960a..573a9ef 100644 --- a/.htaccess +++ b/.htaccess @@ -40,6 +40,9 @@ SetEnv kt_htaccess_worked yes LimitRequestBody 0 DirectoryIndex index.html index.php Options none +Options +ExecCGI +Options +SymLinksIfOwnerMatch +#AcceptPathInfo On # # If you are having uploading larger documents, adjust the 16M examples @@ -55,20 +58,14 @@ php_value max_input_time -1 php_value max_execution_time 90 -# -#Options +MultiViews -# -#SetEnv kt_no_extensions yes -# -# -# # #RewriteEngine On +#RewriteBase / #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME}.php -f -#RewriteRule ^(.*)$ $1.php +#RewriteRule !^[^/]*.php - [C] +#RewriteRule ^([^/]*)([/].+)? $1.php [E=kt_path_info:$2,E=kt_orig_file:$1.php] # #SetEnv kt_no_extensions yes # # -# -- libgit2 0.21.4