rewrite domain redirect using htaccess
- No Comments
- Dec, 22, 2010
- Angelo Schalley
- html / php, joomla, Plesk Linux
Fill your .htaccess file and place it in your root directory :
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks#
# mod_rewrite in useRewriteEngine On
########## Redirect van www.domain.be
# redirect some other domains
RewriteCond %{HTTP_HOST} ^domain\.be$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.be$ [NC]
RewriteRule ^(.*)$ http://www.redirectdomain.be/iets.html [R=301,L]
Read more on rewrite domain redirect using htaccess…
Plesk DNS issues, rebuilding DNS named on plesk
- No Comments
- Dec, 16, 2010
- Angelo Schalley
- DNS, Linux, Plesk Linux
Named under plesk can sometimes go haywire. I have seen until now two cases when this happens:
First Scenario
Named will not start due to a faulty zone file. Log into your server by ssh as user root
Read more on Plesk DNS issues, rebuilding DNS named on plesk…
Bash script logging
- No Comments
- Dec, 16, 2010
- Angelo Schalley
- Linux, Plesk Linux
use
>> mylog ( after the file, use > to overwrite )
to just append to the file
date >> mylog
ls >> mylog
echo >> mylog
OR if You want all script output go the mylog
Read more on Bash script logging…