10 lines
269 B
Text
10 lines
269 B
Text
<IfModule mod_rewrite.c>
|
|
RewriteEngine on
|
|
|
|
# RewriteRule ^path/to/protected/directory/(.*) error [R=301,L]
|
|
|
|
# Rewrite any request to index.php
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^.* index.php [L]
|
|
</IfModule>
|