Tag Archives: htaccess


Prevent .htaccess file modification while running easyapache

Most of the time, the recompilation process of Apache/php with Easyapache with WHM/cPanel server will be effected the users’ .htaccess file. Most probably the entries like “AddHandler” will be commented state.

We can prevent the .htaccess file modification from the WHM tweak settings.

In WHM-> Server Configuration -> Tweak Settings -> System
Depth to recurse for .htaccess checks = 0


ntPHPselector : Bug fix #New Line entry error with AddHandler

Bug # New Line entry error with AddHandler

Description: If an htaccess file is not end with a new line the newly added “AddHandler” entry will be append to the end of the last line. The issue is occur with the .htaccess files eithout ending a newline (normally it ends with new line). The bug is fixed in the new version 2.0.4 by adding the AddHandler Entry as new Line. Since there is no major changes, no need to recompile, reinstall the ntphpselector plugin. The old users can fix this bug by running the following commands from root terminal.


cd /usr/local/src
wget -N http://nixtree.com/download/free/ntphp/ntphp_patch204.sh
sh ntphp_patch204.sh

Continue reading


How to stop other domain name point to your IP?

I could see that some domains point their host to my IP. For example, if someone type www.other-domain.net, it redirect to my IP: which is address of my web. Since my domain is hosted on a dedicated IP, the domain www.other-domain.net  will load the content of my site.

There is absolutely nothing you can do about people pointing their DNS at your IP address because it is their DNS. One thing they can do is direct people to your website with their domain name in the URL bar. You can easily redirect visitors to the correct domain by putting this in your .htaccess file.

RewriteCond %{HTTP_HOST} !^www.my-domain.com$
RewriteRule ^/?(.*) http://www.my-domain.com/$1 [QSA,R=301,L]

Also try reporting domain registered companies for abuse.

Continue reading