In a shared hosting environment this means that the individual site owner can alter the servers configuration for their site without effecting any other sites.
Some common uses for the .htaccess file include:
- rewriting URLs (ie. changing dynamic URLs such as www.mydomain.com/page.php?id=1 to a "friendly" URL such as www.mydomain.com/about
- implementing authorization control (ie. prompt for username and password, or even block/allow certain IP addresses)
- customized error pages, such as changing what is displayed when you get a file not found (404) error
No comments:
Post a Comment