Enable clean urls
Since v0.075 Streber supports Clean urls using the Apache module ´mod_rewrite´. To use clean urls you have to:
- make sure mod_rewrite is installed on your server. For this you can click on the footer Link system info. And then view the phpInfo() output. Under the section ApacheXHandler make sure that Loaded Modules includes mod_rewrite.
- make sure that the .htaccess-files are supported by your provider. In the
httpd.conf this option is listed like:
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
- add the following line to your
customize.inc.php:
confChange('USE_MOD_REWRITE', true);
What's the difference
Most streber urls look like...
streber.pixtur.de/index.php?go=taskView&tsk=589Since in streber all items have unique ids, this number is the only thing we need to display this task. If mod_rewrite is been used, all urls will be generated like...
streber.pixtur.de/589Slightly more readable. This will also decrease html code size and speed up download of your html pages.
Warning / Performance
You should note, that using mod_write in subdirectories via .htaccess can be really slow.
pixtur noticed that on this server (hosted by
www.all-inkl.com) the usage of SEF-Urls is fast only for subdomains (e.g.
streber.pixtur.de) but not for subdirectories (e.g.
www.pixtur.de/some_directory). In subdirectories this caused an inacceptable delay of 2 - 4 seconds.
You should test this.
also see: