From 5c7d65500573ed52ea2fb1aff8a3218b524ea982 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 23 Mar 2006 01:49:04 +0000 Subject: URL rewrite: 3 options in the config file define behaviour (question mark removal, file name for picture and .php extension removal) fix: added unsigned for column in install sql - for the sake of uniformization change: add_url_param is now add_url_params and takes an array as parameter instead of a string git-svn-id: http://piwigo.org/svn/trunk@1094 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/config_default.inc.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'include/config_default.inc.php') diff --git a/include/config_default.inc.php b/include/config_default.inc.php index cbb74ad83..b6427772e 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -415,4 +415,27 @@ $conf['nb_logs_page'] = 300; // history_admin : history admin visits ? $conf['history_admin'] = false; +// +-----------------------------------------------------------------------+ +// | urls | +// +-----------------------------------------------------------------------+ + +// question_mark_in_urls : the generated urls contain a ? sign. This can be +// changed to false only if the server translates PATH_INFO variable +// (depends on the server AcceptPathInfo directive configuration) +$conf['question_mark_in_urls'] = true; + +// picture_url_style : one of 'id' 'id-file' or 'file'. 'id-file' or 'file' +// mean that the file name (without extension will appear in the url). +// Note that one aditionnal sql query will occur if 'file' is choosen. +// Note that you might experience navigation issues if you choose 'file' +// and your file names are not unique +$conf['picture_url_style'] = 'id'; + + +// php_extension_in_urls : if true, the urls generated for picture and +// category will not contain the .php extension. This will work only if +// .htaccess defines Options +MultiViews parameter or url rewriting rules +// are active. +$conf['php_extension_in_urls'] = true; + ?> -- cgit v1.2.3