Loading...
 

ScriptEnableHtaccess

This script is not really useful any more.

Tiki ships with .htaccess in all directories except the root. In root, the file is _htaccess and you just need to rename it to .htaccess to use it. (it is not .htaccess by default because it could overwrite an existing .htaccess by accident) This is useful mostly for Clean URLs but also for Performance and Security.



If you need a script to enable/disable .htaccess files, try this one.

Save it as htaccess.sh into your tiki home, chmod u+x it, and run it from inside your tiki home:

./htaccess.sh enables .htaccess files
./htaccess.sh off disables .htaccess files

Copy to clipboard
#!/bin/bash # 2006 by ohertel for tikiwiki.org # enable/disable .htaccess files # default is: enable .htaccess files # $0 off disable .htaccess files OLD=_htaccess NEW=.htaccess ACTION=activating if [ "$1" = "off" ]; then OLD=.htaccess NEW=_htaccess ACTION=deactivating fi ENTRIES=`/bin/ls -Rd *` for ENTRY in ${ENTRIES} do # only work on directories: if [ -d "$ENTRY" ]; then # do nothing if $NEW already available if [ ! -e ${ENTRY}/${NEW} ]; then # if $OLD available, rename it if [ -e ${ENTRY}/${OLD} ]; then echo "${ACTION} ${ENTRY}/.htaccess" chmod 644 ${ENTRY}/${OLD} mv ${ENTRY}/${OLD} ${ENTRY}/${NEW} fi fi fi done

Page last modified on Tuesday 28 June 2011 21:13:54 GMT-0000

Upcoming Events

1) 
Tiki birthday
2)  19 Oct 2023 14:00 GMT-0000
Tiki Roundtable Meeting - October
3)  16 Nov 2023 14:00 GMT-0000
Tiki Roundtable Meeting - November
4)  21 Dec 2023 14:00 GMT-0000
Tiki Roundtable Meeting - December
5)  18 Jan 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  15 Feb 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  21 Mar 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting