|
|
Home FAQs |
APACHE: How do I block directory scans with .htaccess?
| Author(s): | Rliskey | Experience level: | Beginner | Contributors: | Joomla! version: | ![]() | Date added: | Tuesday, 30 November 1999 | Date last changed: | Friday, 06 July 2007 |
Directions
You can add Apache rewrite rules to your .htaccess file. For example, the following will redirect all attempts to access files with names starting with, "phpMyAdmin" to index.php.
Sample Apache Rewrite Rule
RewriteRule ^/phpMyAdmin.*$ /index.php
Some Regular Expression Tips
^ Means start of filename
. Means any character other than newlines
* Means one or more of the previous character
$ Means end of line
Last Updated Friday, 06 July 2007
| < Prev | Next > |
|---|



FAQs 