Zend Anwar

Full stack web developer

Category: .htaccess

how to redirects with .htaccess ?

The .htaccess file is a small text document that generally sits in the same location as your index.php or index.htm pages. It gives you the ability to interact with Apache on an individual domain-to-domain and directory-to-directory basis. As a configuration file, .htaccess is very powerful. Even the slightest syntax error (like a missing space) can […]

Read More

Deny visitors by IP address in .htaccess

The Allow and Deny directives let you allow and deny access based on the host name, or host address, of the machine requesting a document. The Order directive goes hand-in-hand with these two, and tells Apache in which order to apply the filters. These are very useful for blocking unwanted access, or to restrict access […]

Read More

How to add MIME types in .htaccess?

AddType is specifying that you are adding a MIME type. The application string is the actual parameter of the MIME you are adding, and the final little bit is the default extension for the MIME type you just added, in my example this is swf for ShockWave File. AddType application/x-shockwave-flash swf web hosting account is […]

Read More

What is .htaccess?

Hypertext Access, commonly shortened to htaccess. .htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn ‘loaded via the Apache Web Server’, then the .htaccess file is detected and executed by the Apache Web Server software. […]

Read More