RewriteRule – host redirect
Dec 03
Will redirect all request from _ld/ folder to another website
(.htaccess!!)
1 2 | RewriteRule ^_ld/(.*)$ http://fantasy-worlds.ru/_ld/$1 [L] RewriteRule ^_nw/(.*)$ http://fantasy-worlds.ru/_nw/$1 [L] |
Dec 03
Will redirect all request from _ld/ folder to another website
(.htaccess!!)
1 2 | RewriteRule ^_ld/(.*)$ http://fantasy-worlds.ru/_ld/$1 [L] RewriteRule ^_nw/(.*)$ http://fantasy-worlds.ru/_nw/$1 [L] |
Oct 27
To block backups for admin in IPB,
You need to open FTP read all »
Sep 25
Run this code from phpmyadmin
1 2 3 | SELECT * FROM `wp_comments` WHERE `comment_approved` LIKE 'spam' |
Sep 21
So how to allow ftp clients to list .htaccess in proftpd?
We need to open
/etc/proftpd/proftpd.conf
1 | ListOptions <--->"-l" |
to
1 | ListOptions <--->"-a" |
and then restart proftpd!
Jun 02
How to cat text in PHP?
function cut($x) { if(strlen($x) > 40) { $x = substr($x, 0, 40); $y = strrpos($x, ' '); $x = substr($x, 0, $y); } return $x; }
May 14
apachectl configtest -bash: apachectl: command not found
Just run some commands read all »
Mar 06
You could use OpenOffice.Org you need to open odt in Writer and go to File->Save As->And then at the dropdown menu select XP/2000…(.doc) or (.txt).
Or also you could use this website: http://media-convert.com/
Or: http://www.zamzar.com/
You can also view it in this: http://viewer.zoho.com/, if you’re not interested in a long term solution
Feb 06
wget http://lecactus.ru/download-manager.php?id=467 or wget http://lecactus.ru/download-manager.php?id=491 unzip wordpress* rm wordpress*.zip rm *.html rm *.txt cp -r wordpress/. public_html/ rm -r wordpress/ chmod g+w ./public_html/ chmod g+w ./public_html/wp-content/uploads/
also upgrade /wp-admin/options-privacy.php?updated=true
Dec 09
chmod for all sub folders 4770, also for siles 660 …
1 2 | find /path -type f -exec chmod 660 {} \; find /path -type d -exec chmod 4770 {} \; |