.htaccess

How to block IP’s using .htaccess

Tags: .htaccessApacheipaddress

Published on : April 21, 2016 by

How to block IP’s using .htaccess

Hello All, This post is about blocking an IP using the .htaccess file. At times we will have to block or whitelist a particular IP access to our domain. In such cases we may have to add the IP in the firewall. The method mentioned here will help us to block an IP without adding […]

Continue Reading...


Steps to enable Hotlink protection by default

Tags: .htaccesscPanelhotlink

Published on : July 30, 2014 by

Steps to enable Hotlink protection by default

Preface Hot link protection is security measure in order to prevent other websites from directly linking to files and pictures on your website. Other sites will only be able to link to file types that you don’t specify.Let us see how to enable Hotlink protection Hotlink Protection – Preventing Bandwidth Theft Bandwidth theft or hotlinking […]

Continue Reading...


.htaccess based mod_rewrite not working with Godaddy ?

Tags: .htaccessgodaddymod_rewriterewrite engine

Published on : April 1, 2012 by

.htaccess based mod_rewrite not working with Godaddy ?

We had a situation with our cPanel migration support team, very recently where we had to move a cPanel based hosting account to Godaddy. Move went successful. We had to setup the Free Hosting Account which Godaddy has given to the customer, FTP Transfer was done (I guess it was FXP) and we did made […]

Continue Reading...


Password protect Parent and Allow subdirectory using .htaccess

Tags: .htaccessparentpassword protectsub-directory

Published on : September 24, 2009 by

Password protect Parent and Allow subdirectory  using .htaccess

To  password protect a directory htaccess password protect rules can be added in the directory AuthUserFile /path/to/.htpasswd AuthName “This is Hasten secret area” AuthType Basic require valid-user To create .htpasswd file  use the following command htpasswd -c .htpasswd  <user> You will be prompted for password . Once it is done, the file will be created. […]

Continue Reading...


Redirecting a domain to a subfolder using .htaccess.

Tags: .htaccessdomainmod_rewriteRedirectsubdomain

Published on : July 29, 2009 by

Redirecting a domain to a subfolder using .htaccess.

To redirect domain to a subfolder you can create  a new .htaccess file in the document root of the domain. Then Edit .htaccess file and include the following entries: RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} www.domainname [OR] RewriteCond %{HTTP_HOST} domainname RewriteCond %{REQUEST_URI} !subfolder/ RewriteRule ^(.*)$ subfolder/$1 [L]

Continue Reading...


Let's Connect

Get new updates

Categories

$0.000 items