Tag: htaccess

Deny direct access to PHP files using htaccess

This can be helpful if you have a lot of include files and want to deny direct access to those files.

Redirect www to non www

When the user types your domain with www, for example www.htmlviewer.net, it will be redirected to htmlviewer.net. Even if he access a page, it will be redirected to the same page without the www.