Post by AskApache | Jan 29, 2008
Learn how to log and debug usernames and passwords used to login to a htaccess basic authorization protected website using php. This article is BOSS and will show you how to fully take control of this aspect of security using php and .htaccess, I don't believe you will find instructions to do this anywhere else on the net.
Jan 11, 2008
If you have a Powweb Webhosting account, you will appreciate this simple skeleton .htaccess file for use on their systems.
Htaccess Powweb skeleton
Jan 07, 2008
FeedBurner is so RAD! I love it. Here's an alternative method to redirect scrapers and feed requests to your feedburner url, in my case, I use Branding by feedburner, which is so hot, taking advantage of CNAMEs in your DNS record.
Nov 29, 2007
Ultimate Redirect Cheatsheet for multiple programming languages. Redirecting Users with Javascript redirect, meta refresh redirect, and php redirect, also htaccess methods, python, coldfusion, asp, perl, etc.
301 Htaccess Redirect URL redirection
Nov 26, 2007
.htaccess and php example serves .pdf files to give visitors the choice to open in an external program or save to disk without having to open it in the browser
PDF Before and after Fix - Firefox
Sep 17, 2007
To make your site even faster, serve certain content from different subdomains. The reason this works is amazingly cool!
Sep 10, 2007
If you remove the Last-Modified
and ETag
header, you will totally eliminate If-Modified-Since
and If-None-Match
requests and their 304 Not Modified
Responses.
Cache Caching ETag Htaccess Last-Modified
Sep 10, 2007
By removing the ETag header, you disable caches and browsers from being able to validate files, so they are forced to rely on your Cache-Control and Expires header.
Cache-Control ETags
Sep 10, 2007
A first-time visitor to your page will make several HTTP requests to download all your sites files, but using the Expires header you make those files cacheable. This avoids unnecessary HTTP requests on subsequent page views.
Expires FilesMatch Header Htaccess
Sep 05, 2007
Use the Apache module mod_deflate to compress your static .css
and .js
files, speeding your site up like crazy!
compression Htaccess mod_deflate mod_gzip SetOutputFilter
Aug 18, 2007
Apache Web Server users have problems getting Apache Authentication/password-protection in htaccess working, this is a troubleshooting guide to get Password Protection working!
Aug 09, 2007
WordPress blogs show the same duplicate content for https://www.askapache.com/index.php
and https://www.askapache.com/
. If you've read about using a robots.txt file for WordPress SEO, than you already understand this setup results in Duplicate Content penalties being levied against your Blog and Web Site by Search Engines.
Apr 10, 2007
Server and Environment Variables are used by The Apache HTTP Server by provides a mechanism for storing information. This information can be used to control various operations such as logging or access control.
Apr 10, 2007
Apache has the best SSL/HTTPS support and can be controlled by the httpd.conf file or other HTTPD server configuration file. This htaccess tutorial has htaccess example code to make it easy to secure and use HTTPS and SSL with Apache.
Apr 10, 2007
Apache Security tips and tricks for securing Apache Web Servers using htaccess, httpd.conf, and other built-in techniques to thwart attackers. This really should be required reading for any Apache admin or user because these little tricks are so easy to do.
Apr 10, 2007
How to password-protect, Allow or Deny a visitor based on a condition. If you are having trouble getting htaccess-based password protection to work see: Troubleshooting htaccess Authentication: Getting it to work
AuthName AuthType FilesMatch Htaccess Password Password Protection Require
Apr 10, 2007
Web Professionals use mod_rewrite to issue 301 and 302 Redirects for Search Engines. Sometimes you may not have mod_rewrite.c or you want an alternative redirect method. Using mod_alias RedirectMatch you can use REGEX in Redirect commands!
301 Redirect SEO
Apr 10, 2007
Apache .htaccess and httpd.conf have the power to send and manipulate HTTP Header Requests like sending P3P privacy headers, Content-Type: UTF-8, Content-Language, etc. The power is immense and you can do some really cool stuff with HTTP Headers!
Header Htaccess
Apr 10, 2007
Some of my favorite htaccess examples from some of my favorite .htaccess tutorials. These cut-and-paste ready htaccess code snippets are very useful for website and server administrators.
Apr 08, 2007
I used to run into the problem of having warning messages pop up when I accessed a page with secure and non-secure information and finally I found something that let me post non-ssl encrypted content on an ssl encrypted page and no warning messages will pop up!
Apr 03, 2007
Comprehensive .htaccess example file with advanced examples in 1 htaccess sample skeleton .htaccess file with the very best apache htaccess examples... Updated frequently based on detailed info from the Apache htaccess tutorial.
Allow AuthUserFile Deny Htaccess Redirect RewriteCond RewriteEngine RewriteRule
Apr 03, 2007
Some good examples for how to use the Files and FilesMatch directives in .htaccess files and httpd.conf files for Apache.
<FilesMatch ".(htm|html|css|js|php)$">
AddDefaultCharset UTF-8
DefaultLanguage en-US
</FilesMatch>
FilesMatch
Mar 24, 2007
I had some urls show up in my google sitemaps for one of my sites with "404 Not found" errors for a bunch of urls that had "%23comment-155" looking urls instead of "#comment-155"
Mar 06, 2007
Mar 02, 2007
301 Redirects using Apache mod_rewrite or RedirectMatch in .htaccess or httpd.conf
Feb 26, 2007
Control htaccess Basic Authentication with PHP and mod_rewrite
Feb 22, 2007
Replace underscores in URLs with hyphens using Apache .htaccess.
Feb 11, 2007
Time-dependant rewriting uses mod_rewrite and apache server time variables to display different files depending on the time, while the URL stays the same. An often requested implementation of this is to display a different home page or image depending on if its morning, noon, or night.
Feb 07, 2007
List of the directives available to Powweb users for use in htaccess files
Feb 07, 2007
Securing Subdirectories using unique apache htaccess solutions.
Jan 31, 2007
Fighting Blog Spam with Apache htaccess and other methods.
Jan 06, 2007
If you want to redirect to a different version of a file based on the time, this code is for you! Please read: Serve Alternate Content based on Time
Jan 03, 2007
Dec 05, 2006
2 awesome ways to implement caching on your website using Apache .htaccess or httpd.conf. Both methods are extremely simple to set up and will dramatically speed up your site! Cache Cache-Control ETag Expires Header Headers Htaccess mod_expires mod_headers
Nov 27, 2006
Learning about charset's and file types maybe pretty boring, but using .htaccess it can be fun! Here's a quicklist htaccess cheatsheet for adding the correct Charset to a web document.
AddCharset AddDefaultCharset AddType FilesMatch ForceType UTF-8
Nov 08, 2006
Links to htaccess tutorials and howtos in the htaccess forum
Nov 07, 2006
mod_rewrite is very useful in many situations. Yet some behaviors were not so obvious when I started to mess with it. After many testings, I understand it much better, now. Having said that, I do not pretend to know it perfectly. I also make mistakes.
Nov 07, 2006
A lot of commonly used htaccess code snippets for use with the Apache Web Server.
Nov 07, 2006
Perhaps you want to keep status information between requests and use the URL to encode it. But you don't want to use a CGI wrapper for all pages just to strip out this information.
Htaccess mod_rewrite RewriteRule
Nov 07, 2006
After I optimized the caching for my non-dynamic pages using apache modules mod_headers and mod_expires, I began to learn about phpbb seo..
Htaccess PhpBB