FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Home » Htaccess » RewriteCond Cheatsheet

by 1 comment

Request to http://www.askapache.com/cg/rewrite-test/?catch=caught&this=that

RewriteCond %{THE_REQUEST} = GET /cgi-bin/php/pro/rewrite-test/?catch=caught&this=that HTTP/1.1
RewriteCond %{REQUEST_URI} = /cg/rewrite-test/?catch=caught&this=that
RewriteCond %{QUERY_STRING} = catch=caught&this=that
RewriteCond %{HTTP_HOST} = www.askapache.com
RewriteCond %{HTTP_USER_AGENT} = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
RewriteCond %{REMOTE_ADDR} = 8.8.8.8

RewriteCond %{AUTH_TYPE} = Digest
RewriteCond %{DOCUMENT_ROOT} = /h/ah/sites/askapache.com/htdocs
RewriteCond %{GATEWAY_INTERFACE} = CGI/1.1

RewriteCond %{HTTP_ACCEPT} = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
RewriteCond %{HTTP_ACCEPT_ENCODING} = gzip, deflate
RewriteCond %{HTTP_ACCEPT_LANGUAGE} = en-us,en;q=0.5
RewriteCond %{HTTP_AUTHORIZATION} = Digest username="digadmin", realm="DA BOSS", nonce="lCVPJajA=f199ddfa972f92178d", uri="/cg/rewrite-test/?catch=caught&this=that", algorithm=MD5, response="e41b00258297d651a6", qop=auth, nc=00008, cnonce="169237"
RewriteCond %{HTTP_CONNECTION} = keep-alive
RewriteCond %{HTTP_HOST} = www.askapache.com
RewriteCond %{HTTP_UNIQUE_ID} = URxwkNBWnsAAAF0rGjsAAAAd
RewriteCond %{HTTP_USER_AGENT} = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
RewriteCond %{HTTP_COOKIE} = __utmc=110037338; __utmb=110037338.14.10.1360812961

RewriteCond %{TIME} = 20130214001610
RewriteCond %{TIME_DAY} = 14
RewriteCond %{TIME_HOUR} = 00
RewriteCond %{TIME_MIN} = 16
RewriteCond %{TIME_MON} = 02
RewriteCond %{TIME_SEC} = 10
RewriteCond %{TIME_WDAY} = 4
RewriteCond %{TIME_YEAR} = 2013

RewriteCond %{PATH} = /bin:/usr/bin
RewriteCond %{PHPRC} = /h/ah/sites/askapache.com/inc
RewriteCond %{PHP_AUTH_DIGEST} = username="digadmin", realm="DA BOSS", nonce="lCVPJajA=f199ddfa972f92178d", uri="/cg/rewrite-test/?catch=caught&this=that", algorithm=MD5, response="e41b00258297d651a6", qop=auth, nc=00008, cnonce="169237"
RewriteCond %{PHP_SELF} = /cg/rewrite-test/index.php
RewriteCond %{REDIRECT_STATUS} = 200

RewriteCond %{REMOTE_ADDR} = 8.8.8.8
RewriteCond %{REMOTE_PORT} = 54853
RewriteCond %{REMOTE_USER} = digadmin

RewriteCond %{REQUEST_METHOD} = GET
RewriteCond %{REQUEST_PROTOCOL} = HTTP/1.1
RewriteCond %{REQUEST_TIME} = 1360818320
RewriteCond %{REQUEST_TIME_FLOAT} = 1360818320.6224
RewriteCond %{REQUEST_URI} = /cg/rewrite-test/?catch=caught&this=that
RewriteCond %{REQUEST_FILENAME} = /h/ah/sites/askapache.com/cg/rewrite-test/index.php

RewriteCond %{SCRIPT_FILENAME} = /h/ah/sites/askapache.com/cg/rewrite-test/index.php
RewriteCond %{SCRIPT_NAME} = /cg/rewrite-test/index.php

RewriteCond %{SERVER_ADDR} = 208.86.158.195
RewriteCond %{SERVER_ADMIN} = webmaster@askapache.com
RewriteCond %{SERVER_NAME} = www.askapache.com
RewriteCond %{SERVER_PORT} = 80
RewriteCond %{SERVER_PROTOCOL} = HTTP/1.1
RewriteCond %{SERVER_SIGNATURE} = <address>Apache Server at www.askapache.com Port 80</address>
RewriteCond %{SERVER_SOFTWARE} = Apache
RewriteCond %{UNIQUE_ID} = URxwkNBWnsAAAF0rGjsAAAAd

Tags

Comments Welcome

Information is freedom. Freedom is non-negotiable. So please feel free to modify, copy, republish, sell, or use anything on this site in any way at any time ;)

My Online Tools

Popular Articles
Hacking and Hackers

The use of "hacker" to mean "security breaker" is a confusion on the part of the mass media. We hackers refuse to recognize that meaning, and continue using the word to mean someone who loves to program, someone who enjoys playful cleverness, or the combination of the two.
-- Richard M. Stallman


It's very simple - you read the protocol and write the code. -Bill Joy

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

+Askapache | htaccess.io | htaccess.guru

Site Map | Contact Webmaster | License and Disclaimer | Terms of Service | @Htaccess

↑ TOPMain