En askApache.com han publicado y mejoran una amplia guia con ejemplos de directivas por archivos .htaccess y httpd.conf para Apache.
- For Webmasters
- When site is ‘Under Construction’
- Redirect everyone to different site except 1 IP
- Redirect everyone to different site except 1 IP
- Redirect Everyone but you to alternate page on your server.
- Set the Timezone of the server
- Set the Server Administrator Email
- Turn off the ServerSignature
- Force Files to download, do not display in browser
- Process All .gif files with a cgi script
- Process Requests with certain Request Methods
- Make any file be a certain filetype
- Use IfModule directive for robust code
- Custom HTTP Headers
- PHP htaccess tips
- SEO Search Engine Friendly Redirects without mod_rewrite
- mod_rewrite tips and tricks
- Mostly .htaccess rewrite examples should begin with:
- Check for a key in QUERY_STRING
- Removes the QUERY_STRING from the URL
- Fix for infinite loops
- Require the www
- Require no www
- Redirect .php files to .html files (SEO friendly)
- Redirect .html files to actual .php files (SEO friendly)
- block access to files during certain hours of the day
- Rewrite underscores to hyphens for SEO URL
- Require the www without hardcoding
- Require no subdomain
- Require no subdomain
- Redirecting Wordpress Feeds to Feedburner
- Only allow GET and PUT request methods
- Prevent Files image/file hotlinking and bandwidth stealing
- Stop browser prefetching
- Make a prefetching hint for Firefox.
- Speed up your site with Caching and cache-control
- Apache Authentication in htaccess
- Security with Apache htaccess
- SSL example usage in htaccess
- Redirect non-https requests to https server
- Rewrite non-https to HTTPS without mod_ssl!
- Redirect everything served on port 80 to HTTPS URI
- Redirect particular URLs to a secure version in an SSL SEO method
- Check to see whether the HTTPS environment variable is set
- Rewrite to SSL or NON-SSL using relative URL!
- Apache Variable fun (mod_env)