In my previous post .htaccess tips I had started with what is .htaccess file and some things that can be done using it. In this post I’ll cover more about .htaccess files.
Topics Covered:
- Directory index file
- Redirection
- Preferred domain (www or non-www)
- Redirect old site to new site
- Redirect all files in a directory
- Redirect a file in a directory
- Changing/displaying different file extension
- Redirect a URL having complete query string
- Redirect a URL starting with specific query string
- Redirect a URL containing specific query string
- Redirect based on ipaddress
- Ban visitors from specific ipaddress
- Ban visitors referred from certain sites
- Allow visitors only from specific ipaddress
- Disable Hotlinking
- Multiple domains on same file system
- Some RewriteRule Flags
- Change PHP Flags