Postări

Se afișează postări din septembrie, 2011

.htaccess

Redirect a specific domain (if there is more) to a specific lang segment RewriteCond %{HTTP_HOST} domain.com RewriteCond %{REQUEST_URI} ^/$ RewriteRule .* /lang/ [L,R=301] Redirect all non-www to www.domain.cm RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

RTE in extension

Display html tags for rte in your own extension $this->pi_RTEcssText($bodyText);

Control start-up Services on ubuntu

$ sudo apt-get update $ sudo apt-get install sysv-rc-conf   $ sudo sysv-rc-conf install  sysv-rc-conf run  sysv-rc-conf deselect services (in CentOS the command is: #  sysv-rc-conf )