Excellent Apache mod_rewrite Cheat Sheet
REQUEST_URI
Excellent Apache mod_rewrite Cheat Sheet
REQUEST_URI
Simple Password Protection for a Directory Using .htaccess
The basic snippets are:
The basic .htaccess configuration tells this directory to use basic authentication, what to title the login dialog and where to find the .htpasswd file.
AuthType Basic AuthName "restricted area" AuthUserFile /home/user_name/public_html/protected-dir/.htpasswd require valid-user
.htpasswd is simple a list of usernames and passwords in the format of: user_name:password. One entry per line.
your_user_name:secret_password another_user:another_password someone_else:I*3joidsl__2
Resource: David Wals Blog
1) Put your .htpasswd above your root so visitors can’t access it #/html/username/.htpasswd put username and encryped password of your members 2) It doesn’t matter how many files under how many directories you wanted to protect as they can share … Continue reading
| Unknown | Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the |
| No entries found. |
| 0.3030 | |
| 0.2012 | |
| 0.5450 | |
| 0.2291 | |
| 0.6781 | |
| 0.2601 | |
| 0.4520 | |
| 0.4148 | |
| 0.2270 | |
| 0.8130 | |
| 0.3462 | |
| 0.6762 | |
| 0.1860 | |
| 0.3712 | |
| 0.4230 | |
| 1.4679 | |
| 0.5631 | |
| 0.2010 | |
| 0.4392 | |
| 0.6149 | |
| 0.2730 | |
| 0.2520 | |
| 0.1330 | |
| 0.8371 | |
| 1.7948 | |
| 0.5398 | |
| 60.7150 | |
| 0.6351 | |
| 0.8581 | |
| 0.2539 | |
| 0.7720 | |
| 8.8489 | |
| 0.5579 | |
| 1.0290 | |
| 0.7861 | |
| 0.3240 | |
| 6.7661 | |
| 0.5429 | |
| 0.3290 | |
[0] => themes/twentyeleven/inc/theme-options.php [1] => themes/twentyeleven/inc/widgets.php [2] => themes/twentyeleven/tag.php [3] => themes/twentyeleven/header.php [4] => themes/twentyeleven/searchform.php [5] => themes/twentyeleven/content-link.php [6] => themes/twentyeleven/content.php [7] => themes/twentyeleven/sidebar.php [8] => themes/twentyeleven/footer.php [9] => themes/twentyeleven/sidebar-footer.php
$_GET = array (
);$_POST = array (
);$_COOKIE = array (
);$_SESSION = array (
);$_SERVER = array (
'SERVER_SOFTWARE' => 'Apache',
'REQUEST_URI' => '/tag/htaccess/',
'LSPHP_ENABLE_USER_INI' => 'on',
'PATH' => '/usr/local/bin:/usr/bin:/bin',
'TEMP' => '/tmp',
'TMP' => '/tmp',
'TMPDIR' => '/tmp',
'PWD' => '/',
'HTTP_ACCEPT' => '*/*',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'CONTENT_LENGTH' => '0',
'HTTP_HOST' => 'www.zzzzzzzzz.net',
'HTTP_REFERER' => 'https://www.zzzzzzzzz.net/tag/htaccess',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_X_HTTPS' => '1',
'REDIRECT_UNIQUE_ID' => 'aavPSc5JkDjJoi7Ri9y7SwAAN1g',
'REDIRECT_QS_ConnectionId' => '17728674014003666867235',
'REDIRECT_SCRIPT_URL' => '/tag/htaccess/',
'REDIRECT_SCRIPT_URI' => 'https://www.zzzzzzzzz.net/tag/htaccess/',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_SSL_TLS_SNI' => 'www.zzzzzzzzz.net',
'REDIRECT_HTTP2' => 'on',
'REDIRECT_H2PUSH' => 'off',
'REDIRECT_H2_PUSH' => 'off',
'REDIRECT_H2_PUSHED' => '',
'REDIRECT_H2_PUSHED_ON' => '',
'REDIRECT_H2_STREAM_ID' => '89',
'REDIRECT_H2_STREAM_TAG' => '67235-273-89',
'REDIRECT_STATUS' => '200',
'UNIQUE_ID' => 'aavPSc5JkDjJoi7Ri9y7SwAAN1g',
'QS_ConnectionId' => '17728674014003666867235',
'SCRIPT_URL' => '/tag/htaccess/',
'SCRIPT_URI' => 'https://www.zzzzzzzzz.net/tag/htaccess/',
'HTTPS' => 'on',
'SSL_TLS_SNI' => 'www.zzzzzzzzz.net',
'HTTP2' => 'on',
'H2PUSH' => 'off',
'H2_PUSH' => 'off',
'H2_PUSHED' => '',
'H2_PUSHED_ON' => '',
'H2_STREAM_ID' => '89',
'H2_STREAM_TAG' => '67235-273-89',
'SERVER_SIGNATURE' => '',
'SERVER_NAME' => 'www.zzzzzzzzz.net',
'SERVER_ADDR' => '192.185.137.117',
'SERVER_PORT' => '443',
'REMOTE_ADDR' => '216.73.216.148',
'DOCUMENT_ROOT' => '/home1/zzz/public_html',
'REQUEST_SCHEME' => 'https',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/home1/zzz/public_html',
'SERVER_ADMIN' => 'webmaster@zzzzzzzzz.net',
'SCRIPT_FILENAME' => '/home1/zzz/public_html/index.php',
'REMOTE_PORT' => '32027',
'REDIRECT_URL' => '/tag/htaccess/',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_NAME' => '/index.php',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => 1772867401.4105870723724365234375,
'REQUEST_TIME' => 1772867401,
'argv' =>
array (
),
'argc' => 0,
);